79744622

Date: 2025-08-24 00:25:37
Score: 0.5
Natty:
Report link

Are you using Next.js? If so, the AuthUpdater component needs to be marked as a client component using "use client", since you're using a hook from it (i.e. useAppDispatch()). Hooks can only be used in client components.

"use client"
...
export const AuthUpdater = () => {
  const dispatch = useAppDispatch();
  ...
};

I ran into this same issue myself and had a little trouble identifying the error.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: robwhess