Skip to content

Commit

Permalink
Update store.ts
Browse files Browse the repository at this point in the history
prettify
  • Loading branch information
revintec authored Nov 19, 2024
1 parent e527365 commit 63d8b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/qwik/src/core/state/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ export class ReadWriteProxyHandler implements ProxyHandler<TargetType> {
return true;
}
const invokeCtx = tryGetInvokeContext();
if (invokeCtx) {
if (typeof prop === 'string' && invokeCtx) {
const subscriber = invokeCtx.$subscriber$;
if (subscriber && typeof prop === 'string') {
if (subscriber) {
const isA = isArray(target);
this.$manager$.$addSub$(subscriber, isA ? undefined : prop);
}
Expand Down

0 comments on commit 63d8b79

Please sign in to comment.