You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an app that really is 2 completely separate subapps (or maybe more in the future). They can function independently and do not need to be aware of each other. They do integrate with each other, but that is besides the point.
I looked at the example in Concepts: Router and thought that what is proposed there, mainly doing a #[at("/settings/stuff")] is just weird. Both of my subapps have all their #[at()]s stating at /, not /subapp1 or /subapp2.
The way I route everything in the root component is each subapp takes a basename in it's props and applies it to it's router.
My question is, are there any pifalls with this apart from the obvious thing where you need to pass in basenames of other apps so cross-app <Link>s work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on an app that really is 2 completely separate subapps (or maybe more in the future). They can function independently and do not need to be aware of each other. They do integrate with each other, but that is besides the point.
I looked at the example in Concepts: Router and thought that what is proposed there, mainly doing a
#[at("/settings/stuff")]is just weird. Both of my subapps have all their#[at()]s stating at/, not/subapp1or/subapp2.The way I route everything in the root component is each subapp takes a basename in it's props and applies it to it's router.
My question is, are there any pifalls with this apart from the obvious thing where you need to pass in basenames of other apps so cross-app
<Link>s work?Here's some pseudo-yew:
Beta Was this translation helpful? Give feedback.
All reactions