@chungwu let me know if there’s anyway I can assist in this!
Hello! If you upgrade your @plasmicapp/loader-next
etc), then you should be able to do…
import { usePlasmicCanvasContext } from "@plasmicapp/loader-next";
// this returns either false, or { componentName: ... }
const info = usePlasmicCanvasContext();
amazing! giving this a try now!
@chungwu this is works great! One feedback would be expanding this feature in the future to maybe include a modal that lets you set specific properties instead of just using the componentName.
const { props } = usePlasmicHost();
if (props.hasTabsWrapper) {
return <Provider />;
}