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: remove startTransition so mutation hook could update immediately #2654

Merged
merged 3 commits into from Jun 5, 2023

Conversation

promer94
Copy link
Collaborator

@promer94 promer94 commented Jun 5, 2023

Currently the mutate hook state is updated in startTransition. So when it is used with server action, it won't flush the state update into dom immediately.

close: #2653

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 5, 2023

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 f53426c:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
@swc/core@1.3.62 1.3.56...1.3.62 None +0/-0 kdy1
@types/node@20.2.5 18.16.3...20.2.5 None +0/-0 types
@playwright/test@1.34.3 1.33.0...1.34.3 None +2/-2 aslushnikov
@typescript-eslint/parser@5.59.8 5.59.2...5.59.8 None +10/-9 jameshenry
@types/react-dom@18.2.4 18.0.10...18.2.4 None +0/-3 types
bunchee@3.2.0 3.1.1...3.2.0 None +1/-1 huozhi
@typescript-eslint/eslint-plugin@5.59.8 5.59.2...5.59.8 None +13/-11 jameshenry
eslint@8.42.0 8.39.0...8.42.0 None +5/-7 eslintbot
eslint-plugin-jest-dom@5.0.1 4.0.3...5.0.1 None +6/-11 benmonro
eslint-plugin-testing-library@5.11.0 5.10.3...5.11.0 None +6/-9 testing-library-bot
@types/jest@29.5.2 29.5.1...29.5.2 None +1/-10 types
rimraf@5.0.1 5.0.0...5.0.1 None +2/-2 isaacs

🚮 Removed packages: @next/font@13.1.6, @types/react@18.2.5, next@13.3.4, typescript@4.9.4, typescript@5.0.4

@shuding shuding merged commit c001020 into vercel:main Jun 5, 2023
5 checks passed
@promer94 promer94 deleted the fix-transition branch June 5, 2023 10:04
@sebmarkbage
Copy link

This doesn't seem like the right fix and is a breaking change.

Seems like only the isMutating flag should be outside the startTransition or better yet, use the isPending flag from useTransition.

huozhi added a commit that referenced this pull request Jun 20, 2023
huozhi added a commit that referenced this pull request Jun 20, 2023
David-Duefrene pushed a commit to David-Duefrene/dataviewer that referenced this pull request Jun 23, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app)
([source](https://togithub.com/vercel/swr)) | [`2.1.5` ->
`2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) |
[![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/swr</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://togithub.com/himself65) in
[vercel/swr#2596
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2658
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2664
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2654
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2649
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2648
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2592
- fix: Fix mutation types order by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://togithub.com/saengmotmi) in
[vercel/swr#2666
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://togithub.com/francescogior) in
[vercel/swr#2668
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2673
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2681
- types: fix immutable export paths by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2670
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2604
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2605
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://togithub.com/nicolewhite) in
[vercel/swr#2624
- ci: update github token by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2636
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2637
- ci: use script to bump semver version by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2651
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://togithub.com/suyanhanx) in
[vercel/swr#2601
- build: fix equal signs by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2628
- build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi)
in
[vercel/swr#2629
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2627
- build: fix release semver by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2630
- build: add trigger release job by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2615
- build: determin release tag by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2616
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2677
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2655
- test: improve preload test by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2657
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2671
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2583

#### New Contributors

- [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first
contribution in
[vercel/swr#2601
- [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their
first contribution in
[vercel/swr#2624
- [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first
contribution in
[vercel/swr#2666
- [@&#8203;francescogior](https://togithub.com/francescogior) made their
first contribution in
[vercel/swr#2668

**Full Changelog**:
vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/David-Duefrene/dataviewer).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
tylersmalley pushed a commit to tailscale-dev/vscode-tailscale that referenced this pull request Jun 26, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app)
([source](https://togithub.com/vercel/swr)) | [`^2.1.5` ->
`^2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) |
[![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/swr</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://togithub.com/himself65) in
[vercel/swr#2596
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2658
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2664
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2654
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2649
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2648
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2592
- fix: Fix mutation types order by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://togithub.com/saengmotmi) in
[vercel/swr#2666
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://togithub.com/francescogior) in
[vercel/swr#2668
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2673
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2681
- types: fix immutable export paths by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2670
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2604
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2605
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://togithub.com/nicolewhite) in
[vercel/swr#2624
- ci: update github token by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2636
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2637
- ci: use script to bump semver version by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2651
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://togithub.com/suyanhanx) in
[vercel/swr#2601
- build: fix equal signs by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2628
- build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi)
in
[vercel/swr#2629
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2627
- build: fix release semver by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2630
- build: add trigger release job by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2615
- build: determin release tag by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2616
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2677
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2655
- test: improve preload test by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2657
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2671
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2583

#### New Contributors

- [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first
contribution in
[vercel/swr#2601
- [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their
first contribution in
[vercel/swr#2624
- [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first
contribution in
[vercel/swr#2666
- [@&#8203;francescogior](https://togithub.com/francescogior) made their
first contribution in
[vercel/swr#2668

**Full Changelog**:
vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tailscale-dev/vscode-tailscale).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot pushed a commit to kula-app/OnLaunch that referenced this pull request Jun 26, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`2.1.5` -> `2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/swr (swr)</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

-   feat: use `React.use` API by [@&#8203;himself65](https://togithub.com/himself65) in [vercel/swr#2596
-   feat: improve preload and suspense integration by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2658
-   feat: Add react-server bundle for core and infinite by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2664
-   fix: remove `startTransition` so mutation hook could update immediately by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2654
-   fix: keepPreviousData should also work in suspense by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2649
-   fix: do unsubscribe synchronously by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2648
-   fix: reset the error when mutate succeeded by [@&#8203;koba04](https://togithub.com/koba04) in [vercel/swr#2592
-   fix: Fix mutation types order by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2669
-   fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by [@&#8203;saengmotmi](https://togithub.com/saengmotmi) in [vercel/swr#2666
-   fix: Pass displayed data as second parameter of functional optimistic data by [@&#8203;francescogior](https://togithub.com/francescogior) in [vercel/swr#2668
-   fix: Adjust rsc exports by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2673
-   fix: Revert "fix: remove startTransition so mutation hook could update immediately ([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2681
-   types: fix immutable export paths by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2670
-   types: improve `useSWRMutation` type. by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2604
-   chore: upgrade to pnpm8 by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2605
-   ci: drop unused inputs and step by [@&#8203;nicolewhite](https://togithub.com/nicolewhite) in [vercel/swr#2624
-   ci: update github token by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2636
-   ci: use gh token credentials for cloning repo by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2637
-   ci: use script to bump semver version by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2651
-   ci: Add daily test job for react canary by [@&#8203;suyanhanx](https://togithub.com/suyanhanx) in [vercel/swr#2601
-   build: fix equal signs by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2628
-   build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2629
-   build: use prepatch/minor/major command for prerelease by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2627
-   build: fix release semver by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2630
-   build: add trigger release job by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2615
-   build: determin release tag by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2616
-   build: fix conflict types for index and index.react-server by [@&#8203;huozhi](https://togithub.com/huozhi) in [vercel/swr#2677
-   test: fix flaky suspense test in canary by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2655
-   test: improve preload test by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2657
-   test: add e2e test for react-server entry by [@&#8203;promer94](https://togithub.com/promer94) in [vercel/swr#2671
-   test: add a new test setting to run tests with build files by [@&#8203;koba04](https://togithub.com/koba04) in [vercel/swr#2583

#### New Contributors

-   [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first contribution in [vercel/swr#2601
-   [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their first contribution in [vercel/swr#2624
-   [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first contribution in [vercel/swr#2666
-   [@&#8203;francescogior](https://togithub.com/francescogior) made their first contribution in [vercel/swr#2668

**Full Changelog**: vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kula-app/OnLaunch).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
tylersmalley pushed a commit to tailscale-dev/vscode-tailscale that referenced this pull request Jun 29, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app)
([source](https://togithub.com/vercel/swr)) | [`^2.1.5` ->
`^2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) |
[![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/swr</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://togithub.com/himself65) in
[vercel/swr#2596
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2658
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2664
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2654
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2649
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2648
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2592
- fix: Fix mutation types order by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://togithub.com/saengmotmi) in
[vercel/swr#2666
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://togithub.com/francescogior) in
[vercel/swr#2668
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2673
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2681
- types: fix immutable export paths by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2670
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2604
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2605
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://togithub.com/nicolewhite) in
[vercel/swr#2624
- ci: update github token by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2636
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2637
- ci: use script to bump semver version by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2651
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://togithub.com/suyanhanx) in
[vercel/swr#2601
- build: fix equal signs by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2628
- build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi)
in
[vercel/swr#2629
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2627
- build: fix release semver by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2630
- build: add trigger release job by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2615
- build: determin release tag by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2616
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2677
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2655
- test: improve preload test by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2657
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2671
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2583

#### New Contributors

- [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first
contribution in
[vercel/swr#2601
- [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their
first contribution in
[vercel/swr#2624
- [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first
contribution in
[vercel/swr#2666
- [@&#8203;francescogior](https://togithub.com/francescogior) made their
first contribution in
[vercel/swr#2668

**Full Changelog**:
vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tailscale-dev/vscode-tailscale).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit cdfd327)
sebald pushed a commit to sebald/pattern-analyzer that referenced this pull request Jul 1, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app)
([source](https://togithub.com/vercel/swr)) | [`2.1.5` ->
`2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) |
[![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/swr (swr)</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

##### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://togithub.com/himself65) in
[vercel/swr#2596
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2658
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2664
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2654
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2649
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2648
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2592
- fix: Fix mutation types order by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://togithub.com/saengmotmi) in
[vercel/swr#2666
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://togithub.com/francescogior) in
[vercel/swr#2668
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2673
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2681
- types: fix immutable export paths by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2670
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2604
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2605
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://togithub.com/nicolewhite) in
[vercel/swr#2624
- ci: update github token by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2636
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2637
- ci: use script to bump semver version by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2651
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://togithub.com/suyanhanx) in
[vercel/swr#2601
- build: fix equal signs by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2628
- build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi)
in
[vercel/swr#2629
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2627
- build: fix release semver by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2630
- build: add trigger release job by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2615
- build: determin release tag by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2616
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2677
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2655
- test: improve preload test by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2657
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2671
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2583

##### New Contributors

- [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first
contribution in
[vercel/swr#2601
- [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their
first contribution in
[vercel/swr#2624
- [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first
contribution in
[vercel/swr#2666
- [@&#8203;francescogior](https://togithub.com/francescogior) made their
first contribution in
[vercel/swr#2668

**Full Changelog**:
vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/sebald/pattern-analyzer).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to Unleash/unleash that referenced this pull request Jul 21, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [swr](https://swr.vercel.app)
([source](https://togithub.com/vercel/swr)) | [`2.1.5` ->
`2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/swr/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/swr/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/swr/2.1.5/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/swr/2.1.5/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vercel/swr (swr)</summary>

### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://togithub.com/himself65) in
[vercel/swr#2596
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2658
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2664
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2654
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2649
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2648
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2592
- fix: Fix mutation types order by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://togithub.com/saengmotmi) in
[vercel/swr#2666
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://togithub.com/francescogior) in
[vercel/swr#2668
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2673
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://togithub.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2681
- types: fix immutable export paths by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2670
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2604
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2605
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://togithub.com/nicolewhite) in
[vercel/swr#2624
- ci: update github token by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2636
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2637
- ci: use script to bump semver version by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2651
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://togithub.com/suyanhanx) in
[vercel/swr#2601
- build: fix equal signs by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2628
- build: fix bad runner by [@&#8203;huozhi](https://togithub.com/huozhi)
in
[vercel/swr#2629
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2627
- build: fix release semver by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2630
- build: add trigger release job by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2615
- build: determin release tag by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2616
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://togithub.com/huozhi) in
[vercel/swr#2677
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2655
- test: improve preload test by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2657
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://togithub.com/promer94) in
[vercel/swr#2671
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://togithub.com/koba04) in
[vercel/swr#2583

#### New Contributors

- [@&#8203;suyanhanx](https://togithub.com/suyanhanx) made their first
contribution in
[vercel/swr#2601
- [@&#8203;nicolewhite](https://togithub.com/nicolewhite) made their
first contribution in
[vercel/swr#2624
- [@&#8203;saengmotmi](https://togithub.com/saengmotmi) made their first
contribution in
[vercel/swr#2666
- [@&#8203;francescogior](https://togithub.com/francescogior) made their
first contribution in
[vercel/swr#2668

**Full Changelog**:
vercel/swr@v2.1.5...v2.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Server action mutation doesn't flush updates until the action finishes
3 participants