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
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 LiveViewsocketis 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_contextargument.Actual behavior
Loader function only receives
loaderandparamskeys in the argument.Error logs/stack trace
Additional context
No response
Checklist