@blocklet/pages-kit-runtime 0.6.17 → 0.6.19

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/cjs/client.js CHANGED
@@ -141,7 +141,7 @@ const RuntimeComponent = (props) => {
141
141
  if (props.stateRef?.current) {
142
142
  listeners.current.forEach((listener) => listener(proxyState.rawState));
143
143
  }
144
- }, [proxyState.rawState]);
144
+ }, [proxyState.rawState, props.stateRef]);
145
145
  const { loading } = (0, ahooks_1.useRequest)(async () => {
146
146
  if (props.state) {
147
147
  return null;