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

flow.start() should give server-side full control over the page #6256

Closed
vlukashov opened this issue Aug 15, 2019 · 0 comments
Closed

flow.start() should give server-side full control over the page #6256

vlukashov opened this issue Aug 15, 2019 · 0 comments
Assignees
Labels
hilla Issues related to Hilla
Milestone

Comments

@vlukashov
Copy link

vlukashov commented Aug 15, 2019

The code below should start the server-side Flow app and let it have the full control of the browser page, including click handling and navigation. The app started that way should work the same as a v14 app started with the BoostrapHandler except that if there are any listeners registered with BootstrapHandler, they are not executed.

import { Flow } from '@vaadin/flow';

const flow = new Flow({
    imports: () => import('../target/frontend/generated-flow-imports')
});

document.querySelector('button').addEventListener('click', () => {
    flow.start();
});
@vlukashov vlukashov added the hilla Issues related to Hilla label Aug 15, 2019
@vlukashov vlukashov added this to the CCDM MVP milestone Aug 15, 2019
@project-bot project-bot bot added this to Inbox - needs triage in OLD Vaadin Flow ongoing work (Vaadin 10+) Aug 15, 2019
@pleku pleku removed this from Inbox - needs triage in OLD Vaadin Flow ongoing work (Vaadin 10+) Aug 16, 2019
@manolo manolo self-assigned this Sep 19, 2019
manolo added a commit that referenced this issue Sep 20, 2019
manolo added a commit that referenced this issue Sep 20, 2019
manolo added a commit that referenced this issue Sep 23, 2019
manolo added a commit that referenced this issue Sep 23, 2019
- init router earlier to enable server-side routing
- implement `flow.start()` API (#6256)
- initialize UI in init request to avoid double round-trip
@manolo manolo closed this as completed Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

2 participants