Skip to content

Commit

Permalink
chore: shave bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 18, 2020
1 parent dd0a1b6 commit 9869c93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"index.js": {
"bundled": 4715,
"minified": 2012,
"gzipped": 889,
"bundled": 4699,
"minified": 2008,
"gzipped": 887,
"treeshaked": {
"rollup": {
"code": 61,
Expand All @@ -14,13 +14,13 @@
}
},
"index.cjs.js": {
"bundled": 5331,
"minified": 2343,
"gzipped": 981
"bundled": 5315,
"minified": 2339,
"gzipped": 978
},
"index.iife.js": {
"bundled": 5671,
"minified": 1841,
"gzipped": 854
"bundled": 5653,
"minified": 1837,
"gzipped": 851
}
}
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ const useProxy = <T extends object>(proxy: T): T => {
// not changed
return prevSnapshot
}
prevSnapshot = snapshot
return snapshot
return (prevSnapshot = snapshot)
}
}, [])
const snapshot = useMutableSource(
Expand Down

0 comments on commit 9869c93

Please sign in to comment.