useFetcher causes an infinite render loop with custom MDX components #8955
Unanswered
platon-ivanov
asked this question in
Q&A
Replies: 1 comment
-
Same problem here, just declaring useFetcher without using it causes infinite rendering loop |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using mdx-bundler or mdx-js with custom components, they work as expected.
However, if a line with
useFetcher()
is added on any level of the components, it causes the component to rerender infinitely.Example:
Works:
Causes a render loop:
How can the infinite render loop be avoided?
Beta Was this translation helpful? Give feedback.
All reactions