Closed Wanna-be-Coder closed 2 months ago
Sorry can't merge this. The useEffect is not necessary in this code; it is increasing code complexity needlessly. Please use useEffect
sparingly.
Also, prefer using existing libraries in the codebase such as react-user-query-params
instead of custom solutions.
Hey, could you use https://www.npmjs.com/package/react-use-query-params instead?
NIcely done! Thanks.
It is done according to the issue: Login should respect the "?next=[url]" query parameter such that the user can be redirected properly upon login completion #13