Add Hybrid Routing Support
Opened this issue · 0 comments
andycall commented
Should this be an RFC?
- This is not a substantial change
Description
According to this RFC: openwebf/rfc#8
We have 6 differents steps to get this feature done:
- A customized router library: Fork vue-router for Vue users and react-router for React users.
- One WebF running environment that can support multiple WebF entries:
- The WebF running environment can be initialized by a WebFController instance before creating the
WebF
widget created. - Multiple WebF entries should sharing the same WebFController.
- The new WebF entries should be named:
WebF.RouterView
.
- The WebF running environment can be initialized by a WebFController instance before creating the
- A new API in WebFController to register callbacks, triggering actual native/Flutter navigation actions when JavaScript router libraries start navigating to a new page.
- A new API in WebFController for obtaining all router configurations, allowing Dart/Flutter developers to synchronize these configurations with their existing router configs.
- A new built-in custom element provided to the customized router library, enabling the porting of render contents for each distinct router view.
- Behaviors when
WebF.RouterView
get disposed