diff --git a/.changeset/angry-cameras-wonder.md b/.changeset/angry-cameras-wonder.md new file mode 100644 index 000000000..8aae139ed --- /dev/null +++ b/.changeset/angry-cameras-wonder.md @@ -0,0 +1,5 @@ +--- +"@suspensive/react": patch +--- + +chore(react): resolve ErrorBoundary error of @suspensive/react@3.0.0-next.1 diff --git a/configs/eslint-config/index.js b/configs/eslint-config/index.js index dc728f173..1905351f1 100644 --- a/configs/eslint-config/index.js +++ b/configs/eslint-config/index.js @@ -131,6 +131,7 @@ export const suspensiveReactTypeScriptConfig = tseslint.config( ...reactHooks.configs.recommended.rules, 'react-compiler/react-compiler': 'warn', '@eslint-react/no-forward-ref': 'off', + '@eslint-react/no-context-provider': 'off', }, settings: { react: { diff --git a/packages/react/src/ErrorBoundary.tsx b/packages/react/src/ErrorBoundary.tsx index 4a3ce37a8..f6d441609 100644 --- a/packages/react/src/ErrorBoundary.tsx +++ b/packages/react/src/ErrorBoundary.tsx @@ -136,7 +136,9 @@ class BaseErrorBoundary extends Component{childrenOrFallback} + + {childrenOrFallback} + ) } }