MCPcopy Create free account
hub / github.com/GrapesJS/react / load

Function load

packages/grapesjs-react-app-19/src/examples/common.ts:81–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79export const slowStoragePlugin: Plugin = editor => {
80 editor.Storage.add('slow', {
81 async load() {
82 console.log('Waiting for the Storage');
83 await new Promise(res => setTimeout(res, 3000));
84 return {
85 pages: [{ component: '<h1>Content from the Storage</h1>' }]
86 };
87 },
88 async store() {}
89 });
90};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected