I want to be able to add additional parameters to the route configuration objects so that I can access the route scope at Page level. I want to do this so that route configuration can encapsulate things such as title handling, redirect conditions and various others.
I want to be able to add additional parameters to the route configuration objects so that I can access the route scope at Page level. I want to do this so that route configuration can encapsulate things such as title handling, redirect conditions and various others.
Where I can now supply (only):
I want to be able to supply additional parameters, such as
title
andmyFn
:I could then access the scoped route at
getInitialProps
Something like:The current Route signature looks like this:
Perhaps it could be achieved with a HoC or by extending the library.
If you think that this would be beneficial, I would be happy to create the PR