I’m working with verified routes and I ran into an issue when using JS.Patch and JS.Navigate
Compiling 1 file (.ex)
== Compilation error in file lib/inspection_go_web/live/settings_live/employees.ex ==
** (CompileError) lib/app/live/settings_live/employees.ex:92: invalid args for &, expected one of:
* &Mod.fun/arity to capture a remote function, such as &Enum.map/2
* &fun/arity to capture a local or imported function, such as &is_atom/1
* &some_code(&1, ...) containing at least one argument as &1, such as &List.flatten(&1)
Got: Phoenix.LiveView.JS.navigate(~p"/company/#{company}/settings/employees")
(stdlib 4.3) lists.erl:1462: :lists.mapfoldl_1/3
(phoenix_live_view 0.18.18) expanding macro: Phoenix.LiveView.TagEngine.inner_block/2
** (CompileError) lib/app/live/settings_live/employees.ex:92: invalid args for &, expected one of:
* &Mod.fun/arity to capture a remote function, such as &Enum.map/2
* &fun/arity to capture a local or imported function, such as &is_atom/1
* &some_code(&1, ...) containing at least one argument as &1, such as &List.flatten(&1)
Got: Phoenix.LiveView.JS.navigate(~p"/company/#{company}/settings/employees")
(stdlib 4.3) lists.erl:1462: :lists.mapfoldl_1/3
(phoenix_live_view 0.18.18) expanding macro: Phoenix.LiveView.TagEngine.inner_block/2
I’ve looked around and not been able to find anything online, in docs or in general, and I’ve also tried each of the suggestions that were output with the same error being thrown. Just wondering if anyone here may have run into this or if maybe I overlooked documentation somewhere.
Thanks!