Skip to content

react-admin TextInput multiline without fixed width or fullWidth causes Too many re-renders. The layout is unstable #7780

@rcfrias

Description

@rcfrias

What you were expecting:
Follow and implement Tutorial instructions without any console errors in the DevTools console.

What happened instead:
Frontend renders fine, but console is flooded with errors: "Too many re-renders. The layout is unstable"

Steps to reproduce:
Follow the tutorial, I've isolated the problem. The bug happens only when this line is present:

Related code:

<TextInput multiline source='body' /> // <- multiple errors
// changing to: 
<TextInput fullWidth multiline source='body' /> // no errors

The exact console error is:
MUI: Too many re-renders. The layout is unstable.TextareaAutosize limits the number of renders to prevent an infinite loop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions