-
Notifications
You must be signed in to change notification settings - Fork 395
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
feat: Refactor snapshotting mechanism #970
Conversation
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.
lgtm in my best knowledge...
I like this simplification. Hopefully, the fb_isVisible's removals will work well
Just to leave a finding: I saw a missing Current master
With this PR
|
I did not change any logic for the value fetching. Nevertheless added this field type to the list of placeholder owners to align these behaviours |
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.
yea, i know of. That was interesting.
lgtm
@@ -42,11 +42,11 @@ - (BOOL)fb_isAccessibilityElement | |||
if (nil != attributeValue) { | |||
NSMutableDictionary *updatedValue = [NSMutableDictionary dictionaryWithDictionary:self.additionalAttributes ?: @{}]; | |||
[updatedValue setObject:attributeValue forKey:FB_XCAXAIsElementAttribute]; | |||
self.additionalAttributes = updatedValue.copy; | |||
self.snapshot.additionalAttributes = updatedValue.copy; |
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.
then, others also need to be self.snapshot.additionalAttributes
in here and visible?
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.
not really due to
- (id)forwardingTargetForSelector:(SEL)aSelector |
## [9.0.0](v8.12.2...v9.0.0) (2025-01-16) ### ⚠ BREAKING CHANGES * snapshotTimeout and customSnapshotTimeout settings have been removed as a result of the custom snapshotting logic removal ### Features * Refactor snapshotting mechanism ([#970](#970)) ([08f1306](08f1306))
🎉 This PR is included in version 9.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: snapshotTimeout and customSnapshotTimeout settings have been removed as a result of the custom snapshotting logic removal
Snapshotting is complicated. And requires lots of time.
This PR tries to optimize snapshots by performing the following optimizations: