An option to not import Phoenix.Component.link/1 and friends?

Contributing.md says to post feature requests here.

I have an existing <.link ...> function component. It generates links for resources passed to it with appropriate routes & styles. LiveView 0.18 comes with its own (less contextually relevant) <.link> component which collides with mine.

Would it be reasonable to add an except: [link: 1] style option to use Phoenix.Component to exclude specific components?

It’s not the end of the world to have to use <My.link ...>/<.a>/<.my_link> but a bit annoying maybe. Is that the blessed path going forward? I assume I’m not the only one with this potential migration pain? I could also imagine intersperse colliding at some point too.

You can call import Phoenix.Component, except: … yourself right after using it.

3 Likes