Download wp-calypso/packages/data-stores/src/plugins/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/plugins/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/plugins/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/plugins/index.ts
330 Bytes
| import { plugins, use } from '@wordpress/data'; | |
| import persistOptions from './one-week-persistence-config'; | |
| let isRegistered = false; | |
| export const registerPlugins = () => { | |
| if ( isRegistered ) { | |
| return; | |
| } | |
| isRegistered = true; | |
| /** | |
| * Register plugins for data-stores | |
| */ | |
| use( plugins.persistence, persistOptions ); | |
| }; | |