Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hybrid Routing Support #537

Open
1 task done
andycall opened this issue Dec 12, 2023 · 0 comments
Open
1 task done

Add Hybrid Routing Support #537

andycall opened this issue Dec 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@andycall
Copy link
Member

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:

  1. A customized router library: Fork vue-router for Vue users and react-router for React users.
  2. One WebF running environment that can support multiple WebF entries:
    1. The WebF running environment can be initialized by a WebFController instance before creating the WebF widget created.
    2. Multiple WebF entries should sharing the same WebFController.
    3. The new WebF entries should be named: WebF.RouterView.
  3. A new API in WebFController to register callbacks, triggering actual native/Flutter navigation actions when JavaScript router libraries start navigating to a new page.
  4. A new API in WebFController for obtaining all router configurations, allowing Dart/Flutter developers to synchronize these configurations with their existing router configs.
  5. A new built-in custom element provided to the customized router library, enabling the porting of render contents for each distinct router view.
  6. Behaviors when WebF.RouterView get disposed

Alternatives and Workarounds

@andycall andycall added the enhancement New feature or request label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant