Upgrading from 2.0.0.rc1 to latest (2.3.1) breaks Lookbook previews when rendering partials inside a component #915
Replies: 2 comments
-
|
Interesting. I wonder how Lookbook is calling Phlex. It may need to be updated to use the |
Beta Was this translation helpful? Give feedback.
-
|
Ok, so it seems like there are some hard constraints on Lookbook side for the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With the new
render(partial...))syntax, we get aundefined method 'render' for nilI tracked down the issue and it seems to come from
phlex-rails-2.3.1/lib/phlex/rails/sgml.rb:94that does not resolve acapture_context, so it breaks when callingrender.This is how the partial is being rendered inside the component itself with the new syntax:
Any support would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions