Infinite rerender on no-code example on CodeSandbox
See original GitHub issueWhat you were expecting:
The codesandbox should not keep rerendering the view
What happened instead:
the view gets rerendered infinitely
Steps to reproduce:
Create a sandbox using https://github.com/marmelab/react-admin/tree/next/examples/no-code
Related code:
https://codesandbox.io/s/github/marmelab/react-admin/tree/next/examples/no-code?file=/vite.config.ts
Other information:
Environment
- React-admin version: 4.0.0-rc.0
- Last version that did not exhibit the issue (if applicable): 3.19
- React version:
- Browser: Edge 99
- Stack trace (in case of a JS error):
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
react-hint infinite rerender (no bootstrap) - CodeSandbox
CodeSandbox is an online editor tailored for web applications. ... Templatereact-hint infinite rerender (bootstrap); Environmentcreate-react-app.
Read more >react-infinite examples - CodeSandbox
Learn how to use react-infinite by viewing and forking example apps that make use of react-infinite on CodeSandbox. Highcharts React Simple Chart (forked)Demo ......
Read more >react-rerender-test examples - CodeSandbox
React Rerender Test Examples. Learn how to use react-rerender-test by viewing and forking example apps that make use of react-rerender-test on CodeSandbox.
Read more >FAQs - CodeSandbox
You'll need to refresh to see files updated this way. ... it doesn't prevent all scenarios where infinite loops can occur, such as...
Read more >Configuration - CodeSandbox
infiniteLoopProtection, Whether we should throw an error if we detect an infinite loop, true / false ; hardReloadOnChange, Whether we should refresh the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @slax57 Checkout this repo’s config, it is no longer having infinite loop, can you also verify if the local one works fine for you? https://codesandbox.io/s/wandering-wind-zcpkf3?file=/vite.config.ts
https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/no-code seems throws bad gateway for now because vite cannot be found.
Huh, I have to fork and change the starting script in https://codesandbox.io/s/pedantic-ully-d1so8d?file=/package.json:64-83 from
"dev": "vite",
to"dev": "yarn vite",
in order to get it work. The infinite rerender loop is indeed resolved.