File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -867,21 +867,21 @@ function scheduleSubscriberUpdate<TKey extends OnyxKey>(
867867 cache . removeLastAccessedKey ( key ) ;
868868 }
869869
870- let stateMappingKeys = onyxKeyToSubscriptionIDs . get ( key ) ?? [ ] ;
871- let collectionKey : string | undefined ;
872- try {
873- collectionKey = getCollectionKey ( key ) ;
874- } catch ( e ) {
875- collectionKey = undefined ;
876- }
877-
878- if ( collectionKey ) {
879- stateMappingKeys = [ ...stateMappingKeys , ...( onyxKeyToSubscriptionIDs . get ( collectionKey ) ?? [ ] ) ] ;
880- if ( stateMappingKeys . length === 0 ) {
881- // eslint-disable-next-line no-useless-return
882- return ;
883- }
884- }
870+ // let stateMappingKeys = onyxKeyToSubscriptionIDs.get(key) ?? [];
871+ // let collectionKey: string | undefined;
872+ // try {
873+ // collectionKey = getCollectionKey(key);
874+ // } catch (e) {
875+ // collectionKey = undefined;
876+ // }
877+ //
878+ // if (collectionKey) {
879+ // stateMappingKeys = [...stateMappingKeys, ...(onyxKeyToSubscriptionIDs.get(collectionKey) ?? [])];
880+ // if (stateMappingKeys.length === 0) {
881+ // // eslint-disable-next-line no-useless-return
882+ // return;
883+ // }
884+ // }
885885 } ) ;
886886 return Promise . all ( [ maybeFlushBatchUpdates ( ) , promise ] ) . then ( ( ) => undefined ) ;
887887}
You can’t perform that action at this time.
0 commit comments