Skip to content

Conversation

@DorianMaliszewski
Copy link
Member

Drop isFirstLoad which check if request is enabled and idle to handle the case when you mount the hook and despite of enabled but request still idle. This will be dropped when we will batch updates.
Put this condition in isLoading

@codecov
Copy link

codecov bot commented Jan 26, 2022

Codecov Report

Merging #613 (b271cfd) into main (d037dc9) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #613   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          527       526    -1     
  Branches        87        87           
=========================================
- Hits           527       526    -1     
Impacted Files Coverage Δ
packages/use-dataloader/src/useDataLoader.ts 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 d037dc9...b271cfd. Read the comment docs.

@DorianMaliszewski DorianMaliszewski force-pushed the refactor/replace-is-first-load branch from 06eb5bc to b271cfd Compare January 26, 2022 15:31
@DorianMaliszewski DorianMaliszewski merged commit a32a0a6 into main Jan 26, 2022
@DorianMaliszewski DorianMaliszewski deleted the refactor/replace-is-first-load branch January 26, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants