While implementing deeplinks with this package, we found that when a deeplink is received, we need to immediately return a Location stack. However, we would instead like to either:
go through the default app startup, and only after handle the deeplink request
when the app is active, just call a DeeplinkService, and let that service handle the necessary navigation (if any).
This should already be supported, as per the documentation in the readme:
consider keeping the deeplink location in memory and acting upon it later.
Since it is required to return a Location stack, our current workaround is to either return the userSpecifiedInitialLocation, or fetch and return the currentConfiguration.locationStack. It is only due to the Router implementation that this in fact does not trigger a navigation (since the Page stack remains the same). However this feels dirty and prone to error in the future.
Making the response of the deeplink callback optional, allows us in a more developer-friendly way handle our scenario.
Related Issues
/
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?
Description
While implementing deeplinks with this package, we found that when a deeplink is received, we need to immediately return a Location stack. However, we would instead like to either:
This should already be supported, as per the documentation in the readme:
Since it is required to return a Location stack, our current workaround is to either return the userSpecifiedInitialLocation, or fetch and return the currentConfiguration.locationStack. It is only due to the Router implementation that this in fact does not trigger a navigation (since the Page stack remains the same). However this feels dirty and prone to error in the future.
Making the response of the deeplink callback optional, allows us in a more developer-friendly way handle our scenario.
Related Issues
/
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?