Replies: 1 comment
-
Good idea. I'm not sure it's possible though. We would have to check Svelte files during compilation and somehow get the information from Phoenix about what routing is configured. Technically it should be possible somehow, but it's not so easy in practice. Would need some help with this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to create a component library that integrates with Phoenix and LiveSvelte (e.g., duplicating the functionality of <.button> with navigate=), it is desirable to retain the compile-time checks of ~p.
Something like this:
Currently results in this:
I'm sure this isn't surprising.
Maybe there's a better way to do this, or perhaps it is impossible.
Beta Was this translation helpful? Give feedback.
All reactions