Skip to content

The result of getSnapshot should be cached to avoid an infinite loop #31

Description

@Echoidf

Error Type

Console Error

Error Message

The result of getSnapshot should be cached to avoid an infinite loop

at DeployControl (src/components/deploy-control.tsx:33:31)
at PreviewPane (src/components/preview-pane.tsx:283:15)
at Home (src/app/page.tsx:91:15)

Code Frame

31 | const html = useStore((s) => selectActiveTask(s)?.html ?? "");
32 | const taskId = useStore((s) => s.activeTaskId);

33 | const deployments = useStore(
| ^
34 | (s) => selectActiveTask(s)?.deployments ?? [],
35 | );
36 | const removeDeploymentFor = useStore((s) => s.removeDeploymentFor);

Next.js version: 16.2.6 (Turbopack)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions