-
Notifications
You must be signed in to change notification settings - Fork 135
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
Deprecate preview dependencies trait #323
Conversation
Due to a quirk or bug or Xcode previews, dependency traits are executed for every preview in a file, not just the one that's running. This can cause dependencies from other previews to trample over the preview you are viewing. Because of this, let's deprecate this functionality in favor of good ole fashioned `withDependencies`, with the option of using `prepareDependencies`.
fileID: key.fileID, | ||
filePath: key.filePath, | ||
line: key.line, | ||
column: key.column |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed the lack of labels when fixing docs. This is technically breaking but I don't think anyone should be invoking these arguments directly outside the library and there's a fix-it to add the labels, but if we're worried I can undo this.
@@ -1,7 +1,7 @@ | |||
import Foundation | |||
|
|||
extension Thread { | |||
public static var isPreviewAppEntryPoint: Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally made this public in the previous release.
Due to a quirk or bug or Xcode previews, dependency traits are executed for every preview in a file, not just the one that's running. This can cause dependencies from other previews to trample over the preview you are viewing.
Because of this, let's deprecate this functionality in favor of good ole fashioned
withDependencies
, with the option of usingprepareDependencies
.