@blocklet/pages-kit-runtime 0.6.18 → 0.6.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/esm/client.js CHANGED
@@ -102,7 +102,7 @@ export const RuntimeComponent = (props) => {
102
102
  if (props.stateRef?.current) {
103
103
  listeners.current.forEach((listener) => listener(proxyState.rawState));
104
104
  }
105
- }, [proxyState.rawState]);
105
+ }, [proxyState.rawState, props.stateRef]);
106
106
  const { loading } = useRequest(async () => {
107
107
  if (props.state) {
108
108
  return null;