react-query-auth icon indicating copy to clipboard operation
react-query-auth copied to clipboard

Uncaught Error: useAuth must be used within an AuthProvider

Open morismoze opened this issue 3 years ago • 0 comments

Hi @alan2207,

Sometimes (I can't tell specifically when) I get this error even though useAuth is used inside AuthProvider. Because this is uncaught error, React unmounts the whole tree (and I'm not using useErrorBoundary on react-query client). What is/might be the reason for this behaviour?

Thanks

morismoze avatar Aug 28 '22 11:08 morismoze