Skip to content

Commit

Permalink
fix: react warnings on async atom read in v2 store (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-havukangas-tt authored Aug 6, 2024
1 parent 55a97e2 commit b27d779
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/internals/compose-with-devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../../types';

type DevSubscribeStoreListener = (action: {
type: 'get' | 'async-get' | 'set' | 'sub' | 'unsub' | 'restore';
type: 'async-get' | 'set' | 'sub' | 'unsub' | 'restore';
}) => void;

type DevToolsStoreMethods = {
Expand Down Expand Up @@ -107,7 +107,6 @@ const __composeV2StoreWithDevTools = (
}
});

storeListeners.forEach((l) => l({ type: 'get' }));
return value;
};

Expand Down

0 comments on commit b27d779

Please sign in to comment.