DEV Community

Dan Dahl
Dan Dahl

Posted on

Routing setup for World Data

This week I fought a battle against some Asynchonous Programming Eldritch Horror, and emerged victorious. I have just finished setting up a robust solution using Riverpod's support for asynchronous programming to ensure that in my Admin/Control Panel that supports the backend for my game, I can navigate to a world's page, and see the list of realms in it.

I can click on one of these realms, and navigate to its specific page and see the zones within it and on again with the zone's specific page. I've got a breadcrumb along the top of the app that updates with each location navigated too, and clicking any entry within it allows me to easily navigate back again. All the while, all the information the UI needs is correctly awaited on, and leads to a seamless navigation experience.

It took me the best part of the week to sort this out. Next up will be to pretty up the UI for each screen, and bring back the functionality to open a form and create a new world, realm or zone.

That's it for now,
Cheers, Dan.

Top comments (0)