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

Include Memo.KeyData in CanReuseMemo #1071

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

TimLariviere
Copy link
Member

To determine if a Memo widget can be reused between updates, we were only checking the type of the root widget (eg. VStack). This led to issues when a Memo widget is replaced by another Memo widget with the same root widget type but with different AutomationId.

To improve this a little bit, we also need to include the check between Memo.KeyData as 2 Memo widgets will most likely have different KeyData.

@TimLariviere TimLariviere changed the base branch from main to release/2.4 March 4, 2024 11:01
@TimLariviere TimLariviere merged commit 2bae3c3 into release/2.4 Mar 4, 2024
@TimLariviere TimLariviere deleted the improve-memo-reuse branch March 4, 2024 11:04
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.

1 participant