drizzle
drizzle copied to clipboard
Drizzle react plugin for React Native
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?