Skip to content

[Bug]: Loader not carrying over entire resolution context #48

@vincentvanbush

Description

@vincentvanbush

Permit version

0.3.0

Elixir/OTP version

Latest

Bug description

When using Permit with Permit.Phoenix but not Permit.Ecto, the loader function does not carry over the entire resolution_context, which means that e.g. the LiveView socket is not available to Permit.

Steps to reproduce

Use Permit.Phoenix with a loader function (i.e. without Permit.Ecto).

Code sample

Expected behavior

Socket is accessible to the loader function in its resolution_context argument.

Actual behavior

Loader function only receives loader and params keys in the argument.

Error logs/stack trace

Additional context

No response

Checklist

  • I have searched for existing issues before creating this one
  • I have provided all the requested information
  • This is a bug report, not a feature request or question. For general questions, please use Elixir Slack's Permit channel.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions