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

Refactor <Link /> components from React-Router to Wasp Links #212

Closed

Conversation

zjy4fun
Copy link

@zjy4fun zjy4fun commented Jul 2, 2024

#181

Description

Describe your PR! If it fixes specific issue, mention it with "Fixes # (issue)".

Fixes #181

Contributor Checklist

Make sure to do the following steps if they are applicable to your PR:

@Martinsos
Copy link
Member

@zjy2024 looking good, thanks for the PR! Just to check, how did you know which Link's to switch to Wasp's Link? The thing is, Wasp's Link works only for the Routes defined in main.wasp file. So for Links leading to those, we want Wasp's Link, and for other Link's it is ok to use react-router one directly. Seems like all the changes you did are good. I wonder how you detected those, did you replace all the Link's, or hunted down those that are Wasp relevant only? Are you sure there are no Link's still left that could have been converted?

@zjy4fun zjy4fun closed this Jul 17, 2024
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.

Refactor <Link /> components from React-Router to Wasp Links
2 participants