react refresh and static properties #16981
Unanswered
stefanprobst
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
is there a way to make react refresh understand static function properties?
i am following the approach for persistent layouts suggested in the
with-dynamic-app-layout
example of putting a staticLayout
prop on the default export. this works with fast refresh as long as the layout is imported from another file (which is what the example project does). however, it does not work when the layout is defined in the same file:changing the background styles requires a hard page reload to take effect.
Beta Was this translation helpful? Give feedback.
All reactions