Replies: 1 comment 2 replies
-
|
That's super weird, because Can you create an issue with repro so I can debug? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
On a fresh Expo + Unistyles setup, I’m running into an issue when conditionally delaying the rendering of a layout (for example, waiting for an API call before rendering).
If I early-return from the layout component:
if (!isReady) return null;any useUnistyles usage inside any layout stops reacting to theme updates. Updating the theme no longer causes styles derived from useUnistyles to re-compute.Notably:
Is this expected behavior (e.g. a lifecycle/subscription constraint of useUnistyles), or am I misusing the hook when conditionally rendering the layout?
Beta Was this translation helpful? Give feedback.
All reactions