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

Client router #29

Merged
merged 2 commits into from
May 20, 2021
Merged

Client router #29

merged 2 commits into from
May 20, 2021

Conversation

MuhammadFarag
Copy link
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

Checklist

  • I have added/updated tests for this change

Copy link
Collaborator

@paulomarg paulomarg left a 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.

Comment on lines 6 to 7
const {router} = props;
return <AppBridgeClientRouter history={router} />;
Copy link
Collaborator

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.

Suggested change
const {router} = props;
return <AppBridgeClientRouter history={router} />;
const {history} = props;
return <AppBridgeClientRouter history={history} />;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Comment on lines 63 to 65
<Route path="/">
<ProductsPage/>
</Route>
Copy link
Collaborator

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:

Suggested change
<Route path="/">
<ProductsPage/>
</Route>
<Route path="/" component={ProductsPage}/>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

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

Successfully merging this pull request may close these issues.

2 participants