Skip to content

Commit

Permalink
v
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Nov 15, 2024
1 parent 31ae398 commit ab97f30
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 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.28

### Patch Changes

- fix potential infinite loop

## 7.5.27

### 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.27",
"version": "7.5.28",
"license": "MIT",
"repository": "basehub-ai/basehub",
"bugs": "https://github.com/basehub-ai/basehub/issues",
Expand Down
3 changes: 3 additions & 0 deletions packages/basehub/src/next/toolbar/client-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,13 @@ export const ClientToolbar = ({
}, []);

// human revalidate pending tags
const lastHumanRevalidatedRef = React.useRef<string | null>(null);
React.useEffect(() => {
if (!bshbPreviewToken) return;
if (!ref) return;
if (isForcedDraft) return;
if (lastHumanRevalidatedRef.current === ref) return;
lastHumanRevalidatedRef.current = ref;

humanRevalidatePendingTags({ bshbPreviewToken, ref }).catch(() => {
// ignore
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.170

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.169

### 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.169",
"version": "0.0.170",
"scripts": {
"dev": "basehub dev & next dev --port 3003",
"build": "basehub && next build",
Expand Down

0 comments on commit ab97f30

Please sign in to comment.