Closed mtfranchetto closed 1 year ago
Enable flagged features by acting on sessionStorage. For example:
sessionStorage
Define a new feature flag
export type AvailableFeature = 'cost'
Open a browser tab with PCUI, then go to the console and type
window.sessionStorage.setItem('additionalFeatures', '["cost"]')
Reload the page and the cost flag will be active!
cost
Repeated the same procedure explained in the description (on Chrome)
react-i18next
npm run build
In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
praise: simple and effective!
Description
Enable flagged features by acting on
sessionStorage
. For example:Define a new feature flag
Open a browser tab with PCUI, then go to the console and type
Reload the page and the
cost
flag will be active!How Has This Been Tested?
Repeated the same procedure explained in the description (on Chrome)
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.