You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement functionality to fetch and store feature flag data dynamically on application page load. The data will be stored in a global state using MobX for efficient access and management. Provide helper methods to check feature flag statuses across the application.
Deliverables
API Integration:
Call the GET /feature_flags endpoint on application load.
Description:
Implement functionality to fetch and store feature flag data dynamically on application page load. The data will be stored in a global state using MobX for efficient access and management. Provide helper methods to check feature flag statuses across the application.
Deliverables
API Integration:
GET /feature_flags
endpoint on application load.Global State Management:
Define a MobX store to manage feature flags in the format:
Extract the
name
andenabled
status from the API response to populate the store dynamically.Helper Methods:
Usage Example:
Additional Considerations
Expected Output for the Store:
After fetching, the store might look like this:
The text was updated successfully, but these errors were encountered: