invent-framework / invent

Express yourself with code.
https://invent-framework.github.io/
Apache License 2.0
108 stars 12 forks source link

Transitions between pages needs to be refined (invent channels for lifecycle events) #76

Open ntoll opened 1 month ago

ntoll commented 1 month ago

Currently, transitions between pages are a quick bodge. We need a way for the coder to signal to the Invent framework that the current page should be replaced by a new page. What actually happens is that all pages always exist in the DOM, but they're all hidden except for the current page.

We discussed the possibility of having default Invent channels for app lifecycle events - where the coder can trigger something app related, or the app can signal something app related has happened. Perhaps there should simply be a default channel called app to which only a small set of messages can be published?