Skip to content

Add support for swr with revalidateTag#1122

Draft
conico974 wants to merge 8 commits intomainfrom
conico/swr-tag
Draft

Add support for swr with revalidateTag#1122
conico974 wants to merge 8 commits intomainfrom
conico/swr-tag

Conversation

@conico974
Copy link
Contributor

Need to run more test, revalidation is not done in the background.

Potentially because of that https://github.com/vercel/next.js/blob/4a99afc90f2afebbfe66afb932985029722b5846/packages/next/src/server/lib/incremental-cache/index.ts#L598-L616

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2026

⚠️ No Changeset found

Latest commit: ea37677

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 15, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@opennextjs/aws@1122

commit: ea37677

@github-actions
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 28.34% 3081 / 10870
🔵 Statements 28.34% 3081 / 10870
🔵 Functions 52.2% 154 / 295
🔵 Branches 77.06% 793 / 1029
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/open-next/src/adapters/cache.ts 88.05% 85.71% 100% 88.05% 22-23, 87-95, 102, 136, 203-204, 420, 440-461, 495-496, 530-539, 549-557
packages/open-next/src/adapters/composable-cache.ts 96.37% 88.05% 100% 96.37% 43, 52, 65, 74, 226, 239-240
packages/open-next/src/adapters/dynamo-provider.ts 0% 0% 0% 0% 1-92
packages/open-next/src/build/patch/patches/patchNextServer.ts 100% 100% 100% 100%
packages/open-next/src/overrides/tagCache/dummy.ts 0% 100% 100% 0% 4-24
packages/open-next/src/overrides/tagCache/dynamodb-lite.ts 0% 0% 0% 0% 1-294
packages/open-next/src/overrides/tagCache/dynamodb-nextMode.ts 0% 0% 0% 0% 1-233
packages/open-next/src/overrides/tagCache/dynamodb.ts 0% 0% 0% 0% 1-233
packages/open-next/src/overrides/tagCache/fs-dev-nextMode.ts 0% 0% 0% 0% 1-92
packages/open-next/src/overrides/tagCache/fs-dev.ts 0% 0% 0% 0% 1-105
packages/open-next/src/types/cache.ts 0% 0% 0% 0%
packages/open-next/src/types/overrides.ts 0% 0% 0% 0%
packages/open-next/src/utils/cache.ts 82.89% 72.41% 100% 82.89% 15-16, 20-21, 23-24, 28, 41-42, 50-51, 77-78
Generated in workflow #1751 for commit ea37677 by the Vitest Coverage Report Action

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