Skip to content

unstable_Blocker is making update depth exceeded. #6704

@fernandojbf

Description

@fernandojbf

What version of Remix are you using?

1.18.0

Are all your remix dependencies & dev-dependencies using the same version?

  • Yes

Steps to Reproduce

  1. create a new remix project (eg: npx create-remix@latest --template remix-run/indie-stack blog-tutorial)
  2. import unstable_useBlocker from @remix-run/react
  3. use it in a page unstable_useBlocker(() => false);

Expected Behavior

The console should be clean without any Warning: Maximum update depth exceeded.

Actual Behavior

Maximum update depth exceeded.

image

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