Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds global config experimental flag #308

Closed
wants to merge 1 commit into from
Closed

Conversation

douglance
Copy link
Contributor

In order to be able to ship experimental features for broader testing among consuming applications, we've added a global config object with an experimental flag that would be used like this:

import {
  enableExperimentalFeatures,
  experimentalFeaturesEnabled
} from '@arbitrum/sdk'


// To enable experimental features:
enableExperimentalFeatures()


// To check if experimental features are enabled anywhere in the application
if (experimentalFeaturesEnabled()){
  // do experimental things
}

I did it this way to limit access to the global config object as much as possible.

@cla-bot cla-bot bot added the cla-signed label Jul 6, 2023
@douglance douglance closed this Dec 13, 2023
@douglance douglance deleted the global-config branch April 22, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant