Revert always root snapshot
Summary: this assumption doesnt hold true for android as the snapshot is of the decor view and app bounds include the status bar / bottom bar Reviewed By: elboman Differential Revision: D42035810 fbshipit-source-id: 177b5d086487a940e0bdbe20c2a001c420a08d69
This commit is contained in:
committed by
Facebook GitHub Bot
parent
12c1fdf952
commit
a4525790a2
@@ -130,12 +130,9 @@ export function plugin(client: PluginClient<Events>) {
|
|||||||
const seenNodes = new Set<Id>();
|
const seenNodes = new Set<Id>();
|
||||||
client.onMessage('subtreeUpdate', (event) => {
|
client.onMessage('subtreeUpdate', (event) => {
|
||||||
liveClientData = produce(liveClientData, (draft) => {
|
liveClientData = produce(liveClientData, (draft) => {
|
||||||
// FIXME: remove node id from snapshot as is always
|
if (event.snapshot) {
|
||||||
// for the entire screen.
|
|
||||||
const nodeId = rootId.get();
|
|
||||||
if (event.snapshot && nodeId) {
|
|
||||||
draft.snapshotInfo = {
|
draft.snapshotInfo = {
|
||||||
nodeId,
|
nodeId: event.rootId,
|
||||||
base64Image: event.snapshot,
|
base64Image: event.snapshot,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user