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

use multi routes in single page #171

Open
alerem18 opened this issue Feb 5, 2023 · 5 comments
Open

use multi routes in single page #171

alerem18 opened this issue Feb 5, 2023 · 5 comments
Assignees

Comments

@alerem18
Copy link

alerem18 commented Feb 5, 2023

i wonder is it possible to have a SPA(Single Page Application) with stipple so we can render different models in one page without refreshing the page and create multiple pages
a feature like (Link to="some path" in REACT)

also i would appreciate anyone who can explain me what are channels briefly

@AbhimanyuAryan
Copy link
Member

@alerem18 for now you'll have to use something complicated and solve this problem with genie instead of declaring frontend routing with something like stippleui tabs. I am thinking of adding it

https://github.com/GenieFramework/MultiRoute

@hhaensel
Copy link
Member

hhaensel commented Feb 7, 2023

I think it is not very difficult to support multiple models on a single page.
We would need to have a window.CHANNEL = {modeltype1: channel1; modeltype2: channel2} dict indstead of the current window.CHANNEL = "my channel string".
I could imagine that we could use that to implement SPAs with different models.
Maybe we could even do loading on demand ...

@AbhimanyuAryan
Copy link
Member

yes I interpreted it wrong. Go with helmut's answer

@alerem18
Copy link
Author

alerem18 commented Feb 8, 2023

@alerem18 for now you'll have to use something complicated and solve this problem with genie instead of declaring frontend routing with something like stippleui tabs. I am thinking of adding it

https://github.com/GenieFramework/MultiRoute

i've tried that already, it's not SPA, it's just multi-page multi-route problem, the goal is to use something like react or vue do, render different models on the same page

@essenciary
Copy link
Member

My 2 cents:

  • multiple (Vue) models on the same page would be useful. However, that was pretty complicated in Vue 2 and got much simpler in Vue 3. As we need to migrate to Vue 3 anyway, I would add multi-model support after Vue 3 support.
  • SPA routing should use a proper router (like vue-router) vs rolling out a custom solution. So we could also look into officially supporting routing.
  • traditional SPAs are a dying trend, with users moving to JS frameworks with SSR and dynamic islands (Next, Nuxt, Remix, etc). We might want to consider integrating and bundling a front-end framework instead of "just" routing.

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

No branches or pull requests

4 participants