Skip to content

Message: Rendered more hooks than during the previous render #1697

@Anxhul10

Description

@Anxhul10

Description
Getting an issue in Storybook when rendering a component that displays many hook-using children (e.g., MessageReactions.Reaction). Here's what happens:
Steps to reproduce

  1. Run yarn storybook on packages/fusealge
  2. Navigate to the story for the Message component/ALotOfReaction
  3. Initially the component renders without errors
  4. But if I refresh the page while remaning on the message canvous, I see the error:
    Error: Rendered more hooks than during the previous render.
  5. To get rid of it, I:
    Switch to another canvas and come back
    OR click the canvas refresh button again

Insert an image/gif
https://github.com/user-attachments/assets/0eb5906e-a61d-4683-aba6-82afb0024306

edit : this behaviour is same for Icon/Available Icons

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions