You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently useRollbar always returns a different identity anytime it's called, this makes it impossible to use it inside of memoized functions (useCallback).
The text was updated successfully, but these errors were encountered:
Running this, anytime RollbarWrapper renders, the underlying rollbar context is updated, but the return value of useRollbar is not. It appears that the underlying rollbar context is not memoized and is getting regenerated with every render. However, the return value of useRollbar pulls a field off of the underlying context (marked with a symbol called "RollbarInstance") which is created upon context creation and never changed. So, the return value of useRollbar should be referentially stable.
Currently
useRollbar
always returns a different identity anytime it's called, this makes it impossible to use it inside of memoized functions (useCallback
).The text was updated successfully, but these errors were encountered: