Skip to content

Conversation

@mbrandonw
Copy link
Member

No description provided.

* [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...

@mbrandonw mbrandonw merged commit feaa4d0 into main Feb 17, 2025
0 of 15 checks passed
@mbrandonw mbrandonw deleted the fix-sharing-docs branch February 17, 2025 17:14
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.

3 participants