You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe a call to r.generate('route_that_doesnt_exist') should throw an exception - otherwise what's the point of strongly typing your routes if you don't know when one is incorrectly typed.
alternatively is the intent of the library to leave that up to the consumer to instead use constants or similar?
Hi, Love the idea of the library.
I've been trying it out and ran in to an interesting use case I wanted to see if you'd except a pull request to address.
assume a normal route setup something like below:
I believe a call to
r.generate('route_that_doesnt_exist')
should throw an exception - otherwise what's the point of strongly typing your routes if you don't know when one is incorrectly typed.alternatively is the intent of the library to leave that up to the consumer to instead use constants or similar?
AKA
Thank you!
The text was updated successfully, but these errors were encountered: