Metaculus / Metaculus/metaculus
Fix infinite render loop in MDX editor on question creation
Open
@ncarazon is already working on this.
Since Feb 10, 2026.
Low Priority
Stale
- Dominant language
- TypeScript
- Stars
- 113
- Forks
- 34
- Avg merge
- 16h 34m
- Merged PRs (30d)
- 30
Description
The MDX editor on the question creation page is hitting an infinite render loop for some users.
Sentry: https://metaculus.sentry.io/issues/METACULUS-FRONTEND-1JY (184 events, 8 users)
Error on /questions/create/question:
Error: Maximum update depth exceeded. This can happen when a component
repeatedly calls setState inside componentWillUpdate or componentDidUpdate.
The stack trace points to the Lexical editor's selection handling code in the MDX editor integration. Since only 8 users are affected, this is likely a specific user action or edge case that triggers it.
Need to:
- Try to reproduce the issue
- Review the MDX/Lexical editor integration for state management bugs
- Add guards to prevent infinite loops
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.