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
I am having an infinite re-render issue when using the useTrack hook provided by the Next.js SDK.
I see the problem immediately - this should return a memoized useCallback, but instead returns a brand new function on every render.
My workaround is to simply use the track function returned from useDevCycleClient, which returns the same function from the DevCycle context. This is fine for me, I just wanted to point out the bug so no one else gets confused at why they're in a render loop!
The text was updated successfully, but these errors were encountered:
I am having an infinite re-render issue when using the
useTrack
hook provided by the Next.js SDK.I see the problem immediately - this should return a memoized
useCallback
, but instead returns a brand new function on every render.My workaround is to simply use the
track
function returned fromuseDevCycleClient
, which returns the same function from the DevCycle context. This is fine for me, I just wanted to point out the bug so no one else gets confused at why they're in a render loop!The text was updated successfully, but these errors were encountered: