Metadata with the meta export
Well done! You have successfully added metadata to your routes using the
meta export.
This allows you to set dynamic titles for each page in your application by merging
the parent route's metadata with the current route's metadata.You have also ensured that all titles have a consistent prefix, "Epic Shop -", which
improves the branding and recognition of your application.
Another benefit of the approach we just implemented is that if you add a new route
and you forget to add a title there, it will fallback to the closest parent route's title,
which is a nice safety net to have.
Now that you fully understand the
meta export and how to use it effectively, let's
move onto the next module when you're ready!π§ββοΈ I'm going to fill in the rest of the routes with metadata as you already have a hang of it
and how it works!
π§ββοΈ I'm going to help you out for the next exercise, from what I understand it's all about
data fetching and loaders, so I'm going to set up a database for you to use in the next exercise
and also add some utilities to help you out with fetching data from the database! I hope
this helps you out!
Check out the changes in the next exercise
You're doing great! π