Skip to content

in Core.js - UNSAFE_willMount removed & put defaultSort to url #19

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lang-sky
Copy link
Contributor

UNSAFE_willMount() and _loadProps() are removed.

Because of defaultSort set to 'Cat', the 'City' was not appeared even the url search params are empty.
So, added putSearchParams() to componentDidMound().
It makes the url has the search params 'cat' automatically.
Then, even if you type in 'localhost:1234', the url automatically changes to 'localhost:1234/?cat'
Probably it isn't what you want.
Then you need to remove the whole defaultSort params from App.js to Core.js

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.

1 participant