Infinite loop error with V5 #2790
-
Bug DescriptionHello Team, I upgraded to version 5 and encountered an infinite loop error. I have been using the useShallow hook without issue since version 4, but it is now broken in version 5. Any suggestions would be greatly appreciated. My V4 code looks like this:
Reproduction Linkna |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
@smo043 would you mind creating a minimal repro on stackblitz? |
Beta Was this translation helpful? Give feedback.
-
Maybe, you forgot to use |
Beta Was this translation helpful? Give feedback.
-
Hello @dai-shi @dbritto-dev - After reviewing the code, I have identified the root cause of the issue.
The .map function was causing an infinite loop, and the same code works effectively with version 4. |
Beta Was this translation helpful? Give feedback.
@smo043 we refactored
shallow
util, now we even can compareGenerator
s -> #2821