Component = () => {
        const readAtomFromSnapshot = useRecoilTransaction(({get}) => () => {
          get(atomWithEffect);
        });

        useRecoilValue(atomWithEffect); // first initialization
        expect(numTimesEffectInit).toBeGreaterThanOrEqual(1);
        const effectsRan = numTimesEffectInit;

        /**
         * Transactions do not use a snapshot under the hood, so any initialized
         * effects from a transaction will be reflected in root store
         */
        readAtomFromSnapshot();
        expect(numTimesEffectInit).toBe(effectsRan);

        return 'RENDERED';
      }
Transactions do not use a snapshot under the hood, so any initialized
effects from a transaction will be reflected in root store