This is the template for creating an app based on Create React App with our own additions, base files, and generators.
To use this template, run the following command:
yarn create react-app my-app --template @domoinc/cra-template-advancedFor more information, please refer to:
- User Guide – How to develop apps bootstrapped with Create React App.
By default, the generated app will subscribe to the onDataUpdate event on the parent iframe. This notifies the App Platform that this app should not be forced to reload automatically when one or more of its connected datasets change.
If your app needs the auto-reload, you can remove the onDataUpdate block of code - or make changes accordingly. The function call is placed in this file: src/index.tsx.
For reference: Handling Data Updates.