Skip to content

Remove support for variants that contain . #2155

Answered by javierm
sfnelson asked this question in Ideas
Discussion options

You must be logged in to vote

@sfnelson Thanks for asking! 😄

I'm 100% fine with using the same logic Rails uses. Back when I sent the mentioned pull request, in my project we were using Rails 6.0, where views using variants with dots in their names worked fine (probably by coincidence). That was the motivation behind adding support for them to ViewComponent.

Since Rails no longer supports this feature (not that they ever officially supported it), the use case I mentioned is already broken anyway 😄, so feel free to ignore it 👍.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sfnelson
Comment options

@javierm
Comment options

Answer selected by sfnelson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants