Add isDirty property and make markDirty less crashy/more performant.

Summary: For some internal Instagram diffs, and some external ones (auto-detection of dirty nodes). We need to give the dirty properties a little love. This adds a getter to find out if your node is dirty, and makes sure that the leaf node is properly setup before it is marked dirty to prevent a crash.

Reviewed By: emilsjolander

Differential Revision: D4549241

fbshipit-source-id: 36eda6fdb4ea7f968d126aab6da67896f4a01d40
This commit is contained in:
Dustin Shahidehpour
2017-02-13 10:15:43 -08:00
committed by Facebook Github Bot
parent abf142ea3f
commit 55fe6f0bc9
4 changed files with 43 additions and 2 deletions

View File

@@ -42,3 +42,5 @@ view.configureLayout { (layout) in
layout.height = 50
}
```
- Added new `isDirty` property, and make `markDirty` a little more performant.