This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client' | |
import { useEffect, useTransition } from 'react' | |
import { registerStoryblokBridge } from './registerStoryblokBridge' | |
import { previewUpdateAction } from '../../app/actions/previewUpdateAction' | |
export const StoryblokPreviewSyncer = ({ storyId, pathToRevalidate }) => { | |
let [isPending, startTransition] = useTransition() | |
useEffect(() => { | |
const id = storyId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { SQLWrapper } from "drizzle-orm"; | |
import { sql } from "drizzle-orm"; | |
import type { DbClient } from "@/db"; | |
export const explainAnalyze = async <T extends SQLWrapper>( | |
db: DbClient, | |
query: T, | |
) => { | |
const debugResult = await db.execute(sql`EXPLAIN ANALYZE ${query.getSQL()}`); |
OlderNewer