icortes99 / travel-form-frontend

UI for interaction with the travel forms to Disney. Using Next JS, Chakra and GraphQL
https://travel-form-frontend.vercel.app
1 stars 0 forks source link

Save agency data in global state #8

Open icortes99 opened 4 months ago

icortes99 commented 4 months ago

Save name, slug and image in global state so we can check if the link is valid (or the user manually changed the URL). Additionally, the title of the every page must show the name of the agency, instead of the slug (call the global state in the layout so the change is applied in only one file).

Also, the image presented in the last page before sending the application must be taken from this global state as well.

The request must be triggered in the first fetch, when presenting destinations.

For global state, Recoil is the library. It's already settled in the project for the language only.