Skip to content

feat(queryObserver): add isInitialLoading derived flag#4244

Merged
TkDodo merged 5 commits intoTanStack:mainfrom
TkDodo:feature/isInitialLoading
Sep 30, 2022
Merged

feat(queryObserver): add isInitialLoading derived flag#4244
TkDodo merged 5 commits intoTanStack:mainfrom
TkDodo:feature/isInitialLoading

Conversation

@TkDodo
Copy link
Copy Markdown
Collaborator

@TkDodo TkDodo commented Sep 29, 2022

this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries

refs #3584
refs #3975

this flag describes isLoading && isFetching and can be used to show a loading spinner for lazy or disabled queries
@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Sep 29, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b53b413:

Sandbox Source
@tanstack/query-example-react-basic Configuration
@tanstack/query-example-react-basic-typescript Configuration
@tanstack/query-example-solid-basic-typescript Configuration

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 29, 2022

Codecov Report

Base: 96.36% // Head: 96.46% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (b53b413) compared to base (eab6e2c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4244      +/-   ##
==========================================
+ Coverage   96.36%   96.46%   +0.10%     
==========================================
  Files          45       73      +28     
  Lines        2281     2972     +691     
  Branches      640      818     +178     
==========================================
+ Hits         2198     2867     +669     
- Misses         80      103      +23     
+ Partials        3        2       -1     
Impacted Files Coverage Δ
src/core/retryer.ts
src/core/infiniteQueryObserver.ts
src/core/mutationCache.ts
src/devtools/theme.tsx
src/react/Hydrate.tsx
src/react/setLogger.ts
src/devtools/useLocalStorage.ts
src/core/logger.ts
src/react/logger.ts
src/react/useQueries.ts
... and 108 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TkDodo TkDodo merged commit 46ad29a into TanStack:main Sep 30, 2022
@TkDodo TkDodo deleted the feature/isInitialLoading branch September 30, 2022 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants