Skip to content

Commit

Permalink
Fix store root assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Jun 26, 2024
1 parent 8c3c492 commit 643b333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interactivity/src/proxies/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getStoreProxy = < T extends object >(
isRoot = false
) => {
const proxy = getProxy( obj, storeHandlers, namespace );
if ( isRoot ) {
if ( proxy && isRoot ) {
storeRoots.add( proxy );
}
return proxy;
Expand Down

0 comments on commit 643b333

Please sign in to comment.