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 docs for mutating shared state. #3580

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix docs for mutating shared state. #3580

wants to merge 4 commits into from

Conversation

mbrandonw
Copy link
Member

No description provided.

@@ -33,6 +33,7 @@ system, such as SQLite.
* [Observing changes to shared state](#Observing-changes-to-shared-state)
* [Initialization rules](#Initialization-rules)
* [Deriving shared state](#Deriving-shared-state)
* [Concurrent mutations to shared state](#Concurrent-mutations-to-shared-state)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm moving this up higher because it's important to know this before the testing material.

Comment on lines +457 to +458
same piece of shared state from multiple threads, and hence race conditions are possible. See
[Mutating Shared State][mutating-shared-state-article] for a more in-depth explanation.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I'm linking out to the dedicated "Mutating Shared State" article over in the Sharing repo.

Comment on lines -1051 to -1053
#### Previews

When a preview is run in an app target, the entry point is also created. This means if your entry
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this now can go away since we have a workaround in Dependencies...

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