Skip to content

Commit

Permalink
Demonstrate bug in differentiator where reparented nodes reference no…
Browse files Browse the repository at this point in the history
…n-existent nodes

Summary:
Demonstrates the issue identified in facebook#47960 and a crash we've been seeing internally around `getViewState` referencing a view that does not exist.

When reparenting unflattened nodes, Differentiator may emit an `update` with a `parentShadowView` that does not exist on the native side yet, thereby crashing Android.

Landing the test-case first (with some test cleanup), so the diff for the actual fix is clearer.

Changelog: [Internal]

Differential Revision: D66557919
  • Loading branch information
javache authored and facebook-github-bot committed Nov 28, 2024
1 parent ce9f534 commit d51e316
Showing 1 changed file with 117 additions and 184 deletions.
Loading

0 comments on commit d51e316

Please sign in to comment.