plasmic icon indicating copy to clipboard operation
plasmic copied to clipboard

Plasmic Global Contexts doc lacks usage example

Open nounder opened this issue 2 years ago • 1 comments

I'm thrilled at the power of Plasmic and trying to move more and more app logic into Plasmic. Now, I'm trying to implement local user state to see how UI changes over time (ie. checkout cart content.)

To do so, I wanted to use Global Context but after reading the doc page, I got confused on two fronts:

  1. There is no usage example. How should I use context values set in Studio from the code?
  2. There is no information on prop naming scheme when passing Global Context value thru GlobalContextsProvider.

I'd be glad to get an answer for these questions and also update the doc accordingly as I think this is a crucial information.

nounder avatar Sep 26 '22 12:09 nounder