New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy the config to each new component as it is created #2868
Conversation
I don't love the amount we are customizing ViewComponent, raising the risk of breakage with ViewComponent releases (which has happened on a couple minor releases of ViewComponent I think). I think it's taken more ongoing maintenance than anticipated to keep this working. I also worry about performance implications once we start coping/creating data structures on every instantiation as here. Is this thing for the ability to override templates from an engine with a template in local app? (A thing that the ViewComponent maintainers specifically recommend against?) I know @barmintor has been one of the proponents of this, but I think was open to reconsidering. Is it worth reconsidering? Or is this for some other feature? I would rather, and would propose, we just use ViewComponent as it's maintainers intend, instead of trying to patch it to work differently, resulting in periodic breakage and requiring this kind of ongoing maintenance. Keep it simple. Do we really need features other users of the popular ViewComponent package don't, do we need them enough to add this complexity? |
This is a workaround for a documented issue in ViewComponent. |
There have been two breaking changes w/ ViewComponent minor releases: One was the promotion of an experimental API (which we were using) to actual API (hurrah!); this one is a bug related to upstream changes: ViewComponent/view_component#1565 |
I wonder if we should use (or default to?) |
Changed to @barmintor's implementation |
@jcoyne can you add a pin to |
@cbeer that's a good question, too - though in this case, |
Co-authored-by: Benjamin Armintor <armintor@gmail.com>
2eb7aea
to
b364fb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a reasonable workaround to to the upstream bug.
Fixes #2867