-
Notifications
You must be signed in to change notification settings - Fork 92
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
Client router #29
Client router #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing this, I realized that our server is currently slightly wrong - the /
endpoint should actually be a fallback so that any endpoint ends up loading it. I'll set up a PR for that next.
const {router} = props; | ||
return <AppBridgeClientRouter history={router} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props.router
doesn't exist here, we want to be getting the history from the props.
const {router} = props; | |
return <AppBridgeClientRouter history={router} />; | |
const {history} = props; | |
return <AppBridgeClientRouter history={history} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
resources/js/react/App.jsx
Outdated
<Route path="/"> | ||
<ProductsPage/> | ||
</Route> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot I had one more comment. I think we can make this slightly simpler too:
<Route path="/"> | |
<ProductsPage/> | |
</Route> | |
<Route path="/" component={ProductsPage}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 👍
1ef7793
to
7eb12f4
Compare
WHY are these changes introduced?
Fixes #0000
WHAT is this pull request doing?
Checklist