镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Add option to enable/disable overrides from query params #107

Open

Description

@dmattia

Overrides are great for testing purposes (and our dev/staging envs), but I would like to disable query param overriding in our production build.

Adding this as a param on <LaunchDarkly allowOverrides={false}> would be nice.

If you are open to this change, I am open to making a PR for it 😄

Activity

  1. sethbattin commented on Dec 18, 2019

    @sethbattin
    Contributor

    That sounds great, please do.

    I think we want to leave the default behavior as-is so that we don't have to release a major version; so please make the implementation be opt-in.

    Also we don't have a preexisting configuration reader in the library. Even if we did, that might only help server-rendering folks. So maybe the best idea is to make it a prop with default at the top-level provider? We'd have to drill it down or context it to where it's needed, but that's no big deal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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