Skip to content

Commit 612ad5a

Browse files
committed
fix(sanity): initial fetch in live query data
1 parent e1beab7 commit 612ad5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/sanity/preview-kit/src/live-preview.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ export class LivePreviewService {
253253
.getRevalidateState()
254254
.pipe(
255255
map((state) => state === 'refresh' || state === 'inflight'),
256-
filter(Boolean),
257256
distinctUntilChanged(),
257+
filter(Boolean),
258258
switchMap(() => this.fetchQuery(query, params)),
259259
takeWhile(() => snapshot.observed),
260260
takeUntilDestroyed(this.destroyRef),

0 commit comments

Comments
 (0)