Skip to content

Commit

Permalink
Revert "Ensure state cannot be set to non-object initially"
Browse files Browse the repository at this point in the history
This reverts commit 2ec13e2.
  • Loading branch information
sirreal committed Mar 15, 2024
1 parent eed031b commit 831011e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/interactivity/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,7 @@ export function store(
if ( lock !== universalUnlock ) {
storeLocks.set( namespace, lock );
}
const rawStore = {
state: deepSignal( isObject( state ) ? state : {} ),
...block,
};
const rawStore = { state: deepSignal( state ), ...block };
const proxiedStore = new Proxy( rawStore, handlers );
rawStores.set( namespace, rawStore );
stores.set( namespace, proxiedStore );
Expand Down

0 comments on commit 831011e

Please sign in to comment.