Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Format out of sync files #2247

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/recoil/hooks/Recoil_SnapshotHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ function useTransactionObservation_DEPRECATED(
}

function useRecoilTransactionObserver(
callback: ({
snapshot: Snapshot,
previousSnapshot: Snapshot,
}) => void,
callback: ({snapshot: Snapshot, previousSnapshot: Snapshot}) => void,
) {
useTransactionSubscription(
useCallback(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ testRecoil('Parameterized fallback with atom and async', async () => {
value: 'value',
atom: atom({key: `param async fallback atom ${id++}`, default: 'atom'}),
async: Promise.resolve('async'),
}[param]),
})[param],
});

const valueCont = renderElements(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ testRecoil('selectorFamily - evaluate to RecoilValue', () => {
const atomB = atom({key: 'selectorFamily/const atom B', default: 'B'});
const mySelector = selectorFamily<string, string>({
key: 'selectorFamily/',
get: param => () => param === 'a' ? atomA : atomB,
get: param => () => (param === 'a' ? atomA : atomB),
});

expect(getValue(mySelector('a'))).toEqual('A');
Expand Down