MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / addView

Function addView

packages/react/src/components/navigation/IonNav.tsx:28–28  ·  view source on GitHub ↗
(view: React.ReactElement)

Source from the content-addressed store, hash-verified

26 * the context of the IonNav component.
27 */
28 const addView = (view: React.ReactElement) => setViews((existingViews) => [...existingViews, view]);
29 const removeView = (view: React.ReactElement) => setViews((existingViews) => existingViews.filter((v) => v !== view));
30
31 const delegate = useMemo(() => ReactDelegate(addView, removeView), []);

Callers 1

attachViewToDomFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected