Open youngkidwarrior opened 4 years ago
The legacy codebase has this paradigm setup for RN
componentDidMount() { this.unsubscribe = drizzle.store.subscribe(() => { const drizzleState = drizzle.store.getState(); if (drizzleState.drizzleStatus.initialized) { this.setState({ loading: false, drizzleState }); } }); } componentWillUnmount() { this.unsubscribe(); }
How compatible is using Drizzle Context with store.subscribe and is it necessary?
The legacy codebase has this paradigm setup for RN
How compatible is using Drizzle Context with store.subscribe and is it necessary?