I followed the example for globalContext but data provider doesn't work (I provide a fix)

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

I follow the example for gloablContext, inside the example one of the things it demonstrated doesn’t work, it is suppose to show global context loaded by the dataProvider but it doesn’t show up. The other thing worked though.

  • The global context shows in the Project Settings tab with the correct props. (haven’t tested yet)
  • Provided data is available in a dynamic value. (this doesn’t work)
  • Provided actions are available in a interactions. (this works)

What have you tried so far? (please link relevant docs and other forum posts)

I found a fix

import { GlobalActionsProvider } from "@plasmicapp/host";
import { DataProvider } from "@plasmicapp/loader-nextjs";

The documentation is using DataProvider from “@plasmicapp/host” which isn’t working. If it is using the DataProvider from “@plasmicapp/loader-nextjs” then it works.

For nextjs app.

Perhaps add more code showing the difference between different platform? Otherwise this is very confusing.