How to use the @rematch/persist.getPersistor function in @rematch/persist

To help you get started, we’ve selected a few @rematch/persist examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mcnamee / react-native-starter-kit / src / store / index.js View on Github external
const configureStore = () => {
  const store = init({
    models,
    redux: {
      middlewares: [],
    },
    plugins: [persistPlugin, loadingPlugin],
  });

  const persistor = getPersistor();
  const { dispatch } = store;

  return { persistor, store, dispatch };
};
github expo / expo / apps / native-component-list / instagram / rematch / Gate.js View on Github external
render() {
    const { children } = this.props;

    if (!PERSIST_DATA) {
      return {children};
    }
    return (
      
        {children}
      
    );
  }
}
github EvanBacon / pro-chat / client / src / rematch / Gate.js View on Github external
render() {
    return (
      
        
          {this.props.children}
        
      
    );
  }
}
github EvanBacon / Expo-Nitro-Roll / rematch / Gate.js View on Github external
render() {
    return (
      
        
          {this.props.children}
        
      
    );
  }
}
github eveningkid / reacto / src / components / _containers / Root.js View on Github external
render() {
    const persistor = getPersistor();

    return (
      
        
          {this.props.cwd ? (
            
          ) : (
            
          )}
        
      
    );
  }
}
github EvanBacon / Instagram / rematch / Gate.js View on Github external
render() {
    const { children } = this.props;

    if (!PERSIST_DATA) {
      return {children};
    }
    return (
      
        {children}
      
    );
  }
}

@rematch/persist

Redux-Persist v6 plugin for Rematch. Provides simple redux state persistence using local storage options.

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular @rematch/persist functions