Skip to content

One throws React state update on a component that hasn't mounted yet when using Tab navigator with more then one tab #400

@christianjuth

Description

@christianjuth

When I create a new One project using One 1.1.392 I am getting a React error when using the tab navigator.

  1. Clone the reproduction repo
  2. npm i
    • You may need to add the --force flag as the default one template with npm has been giving me issues recently
  3. npm run dev
  4. Open in Expo Go
  5. You should see the following error
[error] Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead. {"name":"Component Stack"}

Interestingly, if I only register one <Tab.Screen /> I don't get the error, but as soon as I add the second I see the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnativeThings related to native (iOS/Android)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions