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

fix(react-context): expose clients #241

Merged
merged 2 commits into from
Dec 9, 2021
Merged

fix(react-context): expose clients #241

merged 2 commits into from
Dec 9, 2021

Conversation

danilowoz
Copy link
Member

It exposes the clients map under the same contexts, which gives the possibility to interact with all clients under the same provider. Providing access to the clients allows to communicate with the iframe elements and pass messages.

This is the safest way to interact with clients and their iframes, as Sandpack context ensures access to all Preview that has been rendered under the same provider.

@danilowoz danilowoz requested a review from alexnm December 5, 2021 21:14
@danilowoz danilowoz self-assigned this Dec 5, 2021
@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 5, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit db39e67:

Sandbox Source
Sandpack Blog Example 1 Configuration

@danilowoz danilowoz changed the title Context: expose clients fix(react-context): expose clients Dec 5, 2021
@danilowoz danilowoz requested a review from sannek December 7, 2021 10:19
@sannek
Copy link
Contributor

sannek commented Dec 7, 2021

I only looked at the docs change, but that seems clear to me!

@danilowoz danilowoz merged commit f47295d into main Dec 9, 2021
@danilowoz danilowoz deleted the feat/expose-clients branch December 9, 2021 09:46
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

Successfully merging this pull request may close these issues.

2 participants