-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Simple jaspr router does not work on client only app #180
Comments
@schultek per the README in that example repo, the project was created using the "Client Template". I think that helps narrow down the issue. If I created and ran the same project using the Out of curiosity, why is the client only template not the default (in turn matching Flutter web)? This is the simplest possible web app to build and certainly the simplest to deploy. Rationale as to why SSR is the default? The docs state the note below, but Im sure there are nuances here. I found all of the SSR stuff to be a lot more complicated to configure and get going than just a client side app. Im not sure about the "easily adapt" comment.
|
One minor note of clarification, in the example repo linked above, this works: Router.of(context).push('/about'); However, navigating directly to the page does not work and results in a
It looks like it is completely bypassing the App router? class App extends StatelessComponent {
@override
Iterable<Component> build(BuildContext context) sync* {
yield Router(routes: [
Route(path: '/', builder: (context, state) => Home()),
Route(path: '/about', builder: (context, state) => About()),
]);
}
} |
Building as a 'template' view for Laravel, if I include the UPDATE: I had to create the directory |
Description
A very simple routing example, mostly taken from the docs, does not seem to work at all. I find this odd... I am either doing something wrong (e.g. docs are out of date) or this is a very fundamental bug that has yet to be reported for
jaspr_router
?Hopefully that can be resolved soon so that we can continue to look into
jaspr
for a real production use case.Steps To Reproduce
See the repo below, on the
routing
branch for a complete working example and aREADME
with other context:https://github.com/walsha2/jaspr-issues/tree/routing
The text was updated successfully, but these errors were encountered: