SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Extract Fabric event handlers from canonical props (#13024)

We need a different "component tree" thingy for Fabric.

A lot of this doesn't really make much sense in a persistent world but
currently we can't dispatch events to memoizedProps on a Fiber since
they're pooled. Also, it's unclear what the semantics should be when we
dispatch an event that happened when the old props were in effect but now
we have new props already.

This implementation tries to use the last committed props but also fails
at that because we don't have a commit hook in the persistent mode.

However, at least it doesn't crash when dispatching. :)
S
Sebastian Markbåge committed
051637da615a4e8d0cbf8f147a75e129c1866138
Parent: 2a80859
Committed by GitHub <noreply@github.com> on 6/13/2018, 11:20:48 PM