...
If you are using the
location.state
object for contextual navigation, make sure you always provide default values in case the keys are null or undefined to avoid bugs.Always use
req.user.user_id
instead ofreq.headers.user_id
in the API.If you create a database transaction in an API route, make sure that in every path the code takes the transaction is either rolled back or committed.
Miscellaneous advice
If you are doing either the frontend or backend work for a fullstack story, communicate early and frequently with the developer(s) who are working on the other part of the story