Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useEffect( () => {
const newRegistry = createRegistry( {}, registry );
const store = newRegistry.registerStore( 'core/block-editor', storeConfig );
// This should be removed after the refactoring of the effects to controls.
applyMiddlewares( store );
setSubRegistry( newRegistry );
}, [ registry ] );
updateRegistry( calypsoStore ) {
this.registry = createRegistry()
.use( internalsPlugin )
.use( customStorePlugin );
registerStores( this.registry, calypsoStore );
}