Closed vykut closed 1 year ago
@vykut Thank you for your questions. Could you please read those answers here https://github.com/ekazaev/route-composer/issues?q=is%3Aissue+is%3Aclosed++hotel in the closed issues. I believe there a variety of good explanations why is that so. If it wont be enough - please ping me here and we can discuss your particular case.
Thank you @ekazaev for pointing me to those other issues. Really useful!
Hello,
After we have replaced most of the navigation logic in our app with the APIs from this library, we have come across, what one might think of, a limitation of the
Context
approach. Currently,Factory
&ContextAccepting
protocols both expect aContext
type, which, theoretically, can be different, but in practice we realized that it actually has to be the same.Practically, How can I use a different
Context
type for creating a ViewController viaFactory
and a differentContext
for navigating to such controller and "injecting" a different state?the
Router
methodnavigate
accepts a single type ofContext
, so having 2 different types ofContext
s - one forFactory
and one forContextSettingTask
is currently not possible.