Saturn icon indicating copy to clipboard operation
Saturn copied to clipboard

`use_router` can be called multiple times, but only the last router is used

Open baronfel opened this issue 4 years ago • 1 comments

I was talking to Mathias today and we discovered that he had multiple calls to use_router in his application, so only the second one was being processed. We should look at ways to mitigate this problem, because we don't warn the user in any way about this behavior.

baronfel avatar Nov 13 '21 19:11 baronfel

My advice is to throw an exception if this happens (assuming we can detect it). It's easy to do and will fail fast.

isaacabraham avatar Nov 16 '21 10:11 isaacabraham