Skip to content

Commit

Permalink
Squash merge jb/cleanup-search-params into main
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Oct 9, 2024
1 parent 505f19e commit 8576782
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# basehub

## 7.5.7

### Patch Changes

- cleanup search params on call to revalidateTag

## 7.5.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/basehub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "basehub",
"description": "A very fast Headless CMS.",
"author": "JB <[email protected]>",
"version": "7.5.6",
"version": "7.5.7",
"license": "MIT",
"repository": "basehub-ai/basehub",
"bugs": "https://github.com/basehub-ai/basehub/issues",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export const ClientConditionalRenderer = ({
const url = new URL(window.location.href);
const tags = url.searchParams.get("bshb-odr-tags");
if (tags) {
url.searchParams.delete("bshb-odr-tags");
window.history.replaceState(null, "", url);
revalidateTags({ tags: tags.split(",") })
.then(({ success }) => {
document.documentElement.dataset.basehubOdrStatus = success
Expand Down
2 changes: 1 addition & 1 deletion packages/basehub/src/react/pump/server-pump.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const Pump = async <Queries extends Array<PumpQuery>>({
);
}

return <>{resolvedChildren}</>;
return resolvedChildren;
};

/**
Expand Down
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 0.0.149

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.148

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground",
"private": true,
"version": "0.0.148",
"version": "0.0.149",
"scripts": {
"dev": "basehub dev & next dev --port 3003",
"build": "basehub && next build",
Expand Down

0 comments on commit 8576782

Please sign in to comment.