phoenixframework / phoenix_live_view

Rich, real-time user experiences with server-rendered HTML
https://hex.pm/packages/phoenix_live_view
MIT License
6.14k stars 921 forks source link

Do not define as :as helper if helpers are disabled in the router #3418

Closed josevalim closed 1 week ago

josevalim commented 3 weeks ago

We would need to expose this metadata from the router as a module attribute somehow.

SteffenDE commented 3 weeks ago

This would also prevent getting the "could not infer :as option" error when using a module that doesn't end in live, right?

josevalim commented 3 weeks ago

Correct! (Sorry, fat finger)