Skip to content

Commit

Permalink
docs(coaction): uodate
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Jan 18, 2025
1 parent 6aaace2 commit 6b7f831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/getRawState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const getRawState = <T extends CreateState>(
// manually handle computed property
const { deps, fn } = descriptor.value as Computed;
const depsCallbackSelector = createSelectorWithArray(
// the root state should be updated, and the computed property will be updated.
() => [internal.rootState],
() => {
return deps(internal.module as Store<T>['getState']);
Expand Down

0 comments on commit 6b7f831

Please sign in to comment.