Skip to content

Bug: TypeError: Object is not a function or its return value is not iterable (0.0.0-experimental-7b84dbd16) #21095

@jsoneaday

Description

@jsoneaday

I am playing around with concurrent mode and get this error when calling useTransition. Has this function been removed or renamed?

React version: 0.0.0-experimental-7b84dbd16

Steps To Reproduce

  1. Use unstable_createRoot in index.js to enable concurrent mode
  2. import useTransition from react in App.js
  3. Try and call useTransition like this
    const [startTransition, isPending] = useTransition({
    timeoutMs: 3000,
    });

Link to code example:
I don't have one

The current behavior

image

image

The expected behavior

I was trying to test transitions in concurrent mode so I would think it would just transition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions