- DO NOT: Use external services directly, or use Browser APIs or Operating System events directly. DO: Translate data from the environment (be it the browser or the operating system) into app-defined values stored in an observable database. See
src/services/
. - DO NOT: Modify global state (on an rxdb or otherwise) directly from within a React component. This includes making GraphQL queries or mutations using React Hooks provided any of the big GraphQL libraries! Don't do it! DO: encapsulate the process that modifies global state in an imperative shell, then import and call this function in your React component.