Skip to content

Default flags are ignored during the first render #1673

@taschetto

Description

@taschetto

Describe the bug
Flags are evaluated as false during the first render even if default flags are provided.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/taschetto/flopflip-bug
  2. yarn && yarn start
  3. Open the console DevTools in your preferred browser
  4. Notice that the first render outputs false for all feature flags, even though the defaults are different
  5. Then, eventually, the flags assume the default value

Expected behavior
Any tentative to evaluate flags should read from the default flags even during the first render.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions