Skip to content

Commit

Permalink
Bugfix memoized StateContextProvider needs to update when reset prop …
Browse files Browse the repository at this point in the history
…changes
  • Loading branch information
patrickroberts committed Jan 15, 2021
1 parent 1d8f869 commit 348677c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suspense-service",
"version": "0.2.5",
"version": "0.2.6",
"description": "Suspense integration library for React",
"repository": "github:patrickroberts/suspense-service",
"main": "dst/cjs/suspense-service.js",
Expand Down
1 change: 1 addition & 0 deletions src/StateContext/Provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export function createStateContextProvider<T>(
Object.is(prev.value, next.value)
&& Object.is(prev.id, next.id)
&& Object.is(prev.children, next.children)
&& Object.is(prev.reset, next.reset)
));
}

0 comments on commit 348677c

Please sign in to comment.