react-singleton-hook
Version:
Share custom hook state across all components
9 lines • 405 B
JavaScript
/* eslint-disable import/no-unresolved */
import { unstable_batchedUpdates } from 'react-native';
import { warning } from './warning';
export var batch = function batch(cb) {
return unstable_batchedUpdates(cb);
};
export var mount = function mount(C) {
warning('Can not mount SingletonHooksContainer with react native.' + 'Please mount SingletonHooksContainer into your components tree manually.');
};