Skip to content

Commit

Permalink
fix: check if part of a JSX Expression before
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Feb 22, 2024
1 parent 322229c commit eb33000
Showing 1 changed file with 1 addition and 0 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

0 comments on commit eb33000

Please sign in to comment.