Skip to content

Feature Toggles

Kevin Berry edited this page Feb 26, 2020 · 2 revisions

The current implementation involves hard-coded feature toggles that are accessed using FlopFlip with a memory adapter. The SSR code populates the toggles using the window.__TOGGLES__ global variable on the host page. In future, this will be moved to a dynamic solution (REST API call with database backend). At that stage it may be best to just use the FlopFlip adapter's updateFlags function call like this:

adapter.updateFlags({ showEditButton: true });

The hard-coded feature toggles can be found in the atoll-core repo inside the src/server/api/data folder.