Skip to content

Commit

Permalink
Merge pull request #46 from barelyhuman/fix/44
Browse files Browse the repository at this point in the history
Fix: Validate if the readOnly snapshot is not a part of the expression container
  • Loading branch information
barelyhuman authored Mar 1, 2024
2 parents f40c828 + eb33000 commit 5c26bd9
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 224 deletions.
1 change: 1 addition & 0 deletions src/StateSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default {
// FIXME: repetetive check, can be optimized
if (
isInCallback(node) &&
!isInJSXContainer(node) &&
!isInReactHooks(node) &&
!isInCustomHookDef(node)
) {
Expand Down
Loading

0 comments on commit 5c26bd9

Please sign in to comment.