MCPcopy Index your code
hub / github.com/GrapesJS/react / up

Function up

packages/grapesjs-react/src/PagesProvider.tsx:55–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 const event = Pages.events.all;
54
55 const up = () => {
56 setPropState({
57 pages: Pages.getAll(),
58 selected: Pages.getSelected(),
59 select: (...args) => Pages.select(...args),
60 add: (...args) => Pages.add(...args),
61 remove: (...args) => Pages.remove(...args)
62 });
63 };
64
65 editor.on(event, up);
66 up();

Callers 1

PagesProvider.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected