Not Found
Request path contains unescaped characters
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Invoice-App Solution

P

@12Ricky0

Desktop design screenshot for the Invoice app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
5guru
View challenge

Design comparison


SolutionDesign

Solution retrospective


One of the difficult challenges I encountered was using the *Next.js library route interceptors. Trying to dismount the route intercepted was only to use router.back() which became a challenge because I was using react server action where i redirect to the invoice dashboard after a form submission was successful.

Since the router cannot be used in a server component the only way to dismount the interceptor was to use it in a client component which is when the submit button is clicked. This was a challenge because I send error messages using useFormState(), hence the create invoice page redirect sometimes before error messages are sent from the server.

Your feedbacks are welcomed on possible ways to fix this when using *NextJS route interceptors.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord