We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onPropsUpdated
1 parent 0f73997 commit 0a2bb2eCopy full SHA for 0a2bb2e
src/react.tsx
@@ -66,7 +66,9 @@ export function useSetup<State, Props = {}>(
66
}, [tick])
67
68
useEffect(() => {
69
- instance.current?.[LifecycleHooks.PROPS_UPDATED]?.forEach(fn => fn(ReactProps))
+ nextTick(() => {
70
+ instance.current?.[LifecycleHooks.PROPS_UPDATED]?.forEach(fn => fn(ReactProps))
71
+ })
72
}, [ReactProps])
73
74
setCurrentInstance(instance.current)
0 commit comments