Skip to content

Commit

Permalink
fix(storage): fix storage persist issue
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed May 1, 2024
1 parent d019dcb commit fb1776d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactant-storage/src/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class ReactantStorage extends PluginModule {
const ref = getRef(target);
const stopWatching = watch(
this,
() => ref!.state!._persist?.rehydrated,
() => ref!.state?._persist?.rehydrated,
(rehydrated) => {
if (rehydrated) {
stopWatching();
Expand Down

0 comments on commit fb1776d

Please sign in to comment.