Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/do not revalidate on mutate #267

Merged
merged 3 commits into from
Aug 8, 2023
Merged

Conversation

psteinroe
Copy link
Owner

  • fix: do not revalidate on mutate by default
  • fix: use standard config in tests

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2023

🦋 Changeset detected

Latest commit: 2f52243

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@supabase-cache-helpers/postgrest-swr Patch
@supabase-cache-helpers/examples/swr Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
supabase-cache-helpers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 6:44pm
supabase-cache-helpers-react-query ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 6:44pm
supabase-cache-helpers-swr-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 6:44pm

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #267 (2f52243) into main (92caf9e) will decrease coverage by 0.99%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #267      +/-   ##
==========================================
- Coverage   99.04%   98.05%   -0.99%     
==========================================
  Files          57      135      +78     
  Lines         523     1853    +1330     
  Branches       76      442     +366     
==========================================
+ Hits          518     1817    +1299     
- Misses          5       36      +31     
Flag Coverage Δ
postgrest-fetcher 99.39% <ø> (?)
postgrest-filter 99.49% <ø> (?)
postgrest-mutate 100.00% <ø> (?)
postgrest-react-query 97.94% <ø> (ø)
postgrest-swr 94.34% <100.00%> (?)
storage-fetcher 100.00% <ø> (?)
storage-mutate 100.00% <ø> (ø)
storage-react-query 100.00% <ø> (ø)
storage-swr 100.00% <ø> (ø)

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

Files Changed Coverage Δ
...es/postgrest-swr/src/mutate/use-delete-mutation.ts 100.00% <ø> (ø)
...es/postgrest-swr/src/mutate/use-insert-mutation.ts 100.00% <ø> (ø)
...es/postgrest-swr/src/mutate/use-update-mutation.ts 100.00% <ø> (ø)
...es/postgrest-swr/src/mutate/use-upsert-mutation.ts 100.00% <ø> (ø)
...tgrest-swr/src/subscribe/use-subscription-query.ts 94.87% <ø> (ø)
...ackages/postgrest-swr/src/cache/use-delete-item.ts 100.00% <100.00%> (ø)
...ackages/postgrest-swr/src/cache/use-upsert-item.ts 100.00% <100.00%> (ø)
...es/postgrest-swr/src/subscribe/use-subscription.ts 88.00% <100.00%> (ø)

... and 70 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

1 participant