@@ -47,10 +47,10 @@ class NodeFrame {
4747 const updateType = node . getUpdateBeforeType ( ) ;
4848 const reference = node . updateReference ( this ) ;
4949
50- const { frameMap, renderMap } = this . _getMaps ( this . updateBeforeMap , reference ) ;
51-
5250 if ( updateType === NodeUpdateType . FRAME ) {
5351
52+ const { frameMap } = this . _getMaps ( this . updateBeforeMap , reference ) ;
53+
5454 if ( frameMap . get ( node ) !== this . frameId ) {
5555
5656 frameMap . set ( node , this . frameId ) ;
@@ -61,10 +61,11 @@ class NodeFrame {
6161
6262 } else if ( updateType === NodeUpdateType . RENDER ) {
6363
64- if ( renderMap . get ( node ) !== this . renderId || frameMap . get ( node ) !== this . frameId ) {
64+ const { renderMap } = this . _getMaps ( this . updateBeforeMap , reference ) ;
65+
66+ if ( renderMap . get ( node ) !== this . renderId ) {
6567
6668 renderMap . set ( node , this . renderId ) ;
67- frameMap . set ( node , this . frameId ) ;
6869
6970 node . updateBefore ( this ) ;
7071
@@ -83,10 +84,10 @@ class NodeFrame {
8384 const updateType = node . getUpdateType ( ) ;
8485 const reference = node . updateReference ( this ) ;
8586
86- const { frameMap, renderMap } = this . _getMaps ( this . updateMap , reference ) ;
87-
8887 if ( updateType === NodeUpdateType . FRAME ) {
8988
89+ const { frameMap } = this . _getMaps ( this . updateMap , reference ) ;
90+
9091 if ( frameMap . get ( node ) !== this . frameId ) {
9192
9293 frameMap . set ( node , this . frameId ) ;
@@ -97,10 +98,11 @@ class NodeFrame {
9798
9899 } else if ( updateType === NodeUpdateType . RENDER ) {
99100
100- if ( renderMap . get ( node ) !== this . renderId || frameMap . get ( node ) !== this . frameId ) {
101+ const { renderMap } = this . _getMaps ( this . updateMap , reference ) ;
102+
103+ if ( renderMap . get ( node ) !== this . renderId ) {
101104
102105 renderMap . set ( node , this . renderId ) ;
103- frameMap . set ( node , this . frameId ) ;
104106
105107 node . update ( this ) ;
106108
0 commit comments