The project was using a provider to keep track of the selected bottom navigation bar item. Works well, but sometimes gets out of sync when opening the app through a deep link
Depending on URL would have the same behaviour but without the out-of-sync bug. Also slightly less code to write
Comments
For example, relying on a book ID from the path /books/:bookID instead of some state management solution
I don't mean it as a full replacement of state management. I mean alongside your state management system.
The thing that triggered this post was a tiny bug with the selected bottom navigation bar item. (1/2)
Depending on URL would have the same behaviour but without the out-of-sync bug. Also slightly less code to write