saseungmin / Recoil_ToDo

Todo📆 application created using Recoil and React ⚛️
https://saseungmin.github.io/Recoil_ToDo/
MIT License
20 stars 1 forks source link

[Fix] After login Check error #53

Closed saseungmin closed 3 years ago

saseungmin commented 3 years ago
const userWithCheck = selector({
  key: 'userWithCheck',
  get: async () => {
    const response = await check();

    return response;
  },
});
const userWithCheck = selectorFamily({
  key: 'userWithCheck',
  get: () => async () => {
    const response = await check();

    return response;
  },
});

const userWithCheckQuery = selector({
  key: 'userWithCheckQuery',
  get: ({ get }) => {
    const { auth } = get(authResultAtom);

    if (!auth) {
      return null;
    }

    const loadable = recoilLoadable(get(noWait(userWithCheck(auth))));

    return loadable;
  },
});
codecov[bot] commented 3 years ago

Codecov Report

Merging #53 (daf979d) into main (9573eca) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #53   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           51        51           
  Lines          499       499           
  Branches        69        69           
=========================================
  Hits           499       499           
Impacted Files Coverage Δ
src/components/auth/LoginForm.jsx 100.00% <100.00%> (ø)
src/components/user-info/UserStatus.jsx 100.00% <100.00%> (ø)
src/recoil/user/withCheck.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9573eca...daf979d. Read the comment docs.