Skip to content

Regression: Handle undefined values on useReactiveQuery's query function - #26988

Merged
ggazzo merged 7 commits into
developfrom
regression/reactive-queries
Oct 4, 2022
Merged

ggazzo merged 7 commits into
developfrom
regression/reactive-queries

Conversation

@tassoevan

@tassoevan tassoevan commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

According to https://tanstack.com/query/v4/docs/reference/useQuery, the query function must not return undefined values, a quirk that we've been ignoring.

Issue(s)

Steps to test or reproduce

Further comments

OC-259

@tassoevan tassoevan added this to the 5.2.0 milestone Sep 30, 2022
@codecov

codecov Bot commented Sep 30, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #26988 (de0e65a) into develop (26941d5) will decrease coverage by 0.95%.
The diff coverage is 31.57%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #26988      +/-   ##
===========================================
- Coverage    41.02%   40.06%   -0.96%     
===========================================
  Files          801      829      +28     
  Lines        17908    18376     +468     
  Branches      1961     2019      +58     
===========================================
+ Hits          7346     7363      +17     
- Misses       10264    10714     +450     
- Partials       298      299       +1     
Flag Coverage Δ
e2e 40.06% <31.57%> (-0.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@tassoevan
tassoevan marked this pull request as ready for review October 3, 2022 04:19
@tassoevan
tassoevan requested a review from a team as a code owner October 3, 2022 04:19
@tassoevan
tassoevan force-pushed the regression/reactive-queries branch from 06bd852 to 9d7ad27 Compare October 3, 2022 20:27
@ggazzo
ggazzo merged commit aa249a6 into develop Oct 4, 2022
@ggazzo
ggazzo deleted the regression/reactive-queries branch October 4, 2022 04:53
@tassoevan tassoevan mentioned this pull request Oct 13, 2022
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.

2 participants