We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03ff776 commit 431e843Copy full SHA for 431e843
.changeset/hot-ladybugs-dream.md
@@ -0,0 +1,5 @@
1
+---
2
+'jotai-x': patch
3
4
+
5
+Fix: remove default infiniteRenderDetectionLimit
packages/jotai-x/src/createAtomStore.ts
@@ -595,7 +595,7 @@ export const createAtomStore = <
595
deps
596
) => {
597
// If selector/equalityFn are not memoized, infinite loop will occur.
598
- if (process.env.NODE_ENV !== 'production') {
+ if (process.env.NODE_ENV !== 'production' && infiniteRenderDetectionLimit) {
599
renderCount += 1;
600
if (renderCount > infiniteRenderDetectionLimit) {
601
throw new Error(
0 commit comments