We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
search keyword: 'Clean Code'
因為 input 裡的 empty string 到 Url encode 後,造成 state 持續的變化,持續發出 request 所以使用 router.events 的 shallow 判斷是否需要打 api
router.events
shallow
Shallow Routing Shallow routing allows you to change the URL without running data fetching methods again, that includes getServerSideProps, getStaticProps, and getInitialProps.
細節: The URL will get updated to /?counter=10. and the page won't get replaced, only the state of the route is changed.
router.push('/?counter=10', undefined, { shallow: true })
Url encode
空白 => + + => %2B %2B => %252B
The text was updated successfully, but these errors were encountered:
fix bug #1
ca9e6e6
No branches or pull requests
search keyword: 'Clean Code'
因為 input 裡的 empty string 到 Url encode 後,造成 state 持續的變化,持續發出 request
所以使用
router.events
的shallow
判斷是否需要打 apiShallow Routing
Shallow routing allows you to change the URL without running data fetching methods again, that includes getServerSideProps, getStaticProps, and getInitialProps.
細節:
The URL will get updated to /?counter=10. and the page won't get replaced, only the state of the route is changed.
Url encode
The text was updated successfully, but these errors were encountered: