79310707

Date: 2024-12-27 01:06:41
Score: 1.5
Natty:
Report link

Why not use a Stateless option and go with a param i.e. redirect(/login?error=${encodeURIComponent(error.message)})

Then on the client-side useSearchParams#get('error'), then if you want to be fancy, you can mask the URL on the client-side and replace the URL in order to keep it clean.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): Why not use a
  • Low reputation (1):
Posted by: Monotoo