Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plasmic Global Contexts doc lacks usage example #55

Open
nounderline opened this issue Sep 26, 2022 · 1 comment
Open

Plasmic Global Contexts doc lacks usage example #55

nounderline opened this issue Sep 26, 2022 · 1 comment

Comments

@nounderline
Copy link

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.

@yang
Copy link
Contributor

yang commented Sep 29, 2022

This is great feedback, thank you! @jaslong maybe you can take a pass at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants