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

app and gizmo lifecycle management #21

Open
5 tasks
unional opened this issue Apr 15, 2022 · 1 comment
Open
5 tasks

app and gizmo lifecycle management #21

unional opened this issue Apr 15, 2022 · 1 comment

Comments

@unional
Copy link
Contributor

unional commented Apr 15, 2022

Dynamic install, disable/enable, reload app, etc is still far away.

But the deactivate design should be in place and implemented in preparing for that.

Two approaches:

export function deactivate() { ... }

// or

export function activate() { return () => { /* cleanup */ } }

UPDATE:

  • deactivate: cleanup, will be handled by @unional/gizmo
  • dynamic load: will be handled by @unional/gizmo
  • dynamic install: likely not a concern to the core framework. Maybe a IDE/CLI utility
  • disable/enable: hibernation, will be specific to just-web. Will be a breaking change, or maybe just a different gizmo.
  • reload app: essentially hibernation should be sufficient.
@unional unional changed the title plugins: support deactivate() for clean up app and gizmo lifecycle management Apr 24, 2023
@unional
Copy link
Contributor Author

unional commented Apr 24, 2023

unional/async-fp#161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant