Skip to content

React SDK doesn't load in React 18's StrictMode  #221

@TatarczykAVitesse

Description

@TatarczykAVitesse

Hello

I've been trying to integrate Split in my app but the features would never load (isReady property is never set to true) and it turned out it's because in the development mode I'm using React's StrictMode. As soon as I moved the SplitFactoryProvider outside of it, everything starts to work properly.

I prepared a reproduction repo based on the React's example app https://github.com/TatarczykAVitesse/react-typescript-sdk-examples

Interestingly, as soon as I downgrade from version 2 to version 1 of @splitsoftware/splitio-react, it starts to work with no further changes

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