perf(e2e): ⚡️ Migrate to Playwright
This commit is contained in:
@ -14,7 +14,8 @@ export const useFolders = ({
|
||||
const params = stringify({ parentId })
|
||||
const { data, error, mutate } = useSWR<{ folders: DashboardFolder[] }, Error>(
|
||||
`/api/folders?${params}`,
|
||||
fetcher
|
||||
fetcher,
|
||||
{ dedupingInterval: 0 }
|
||||
)
|
||||
if (error) onError(error)
|
||||
return {
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { Coordinates } from '@dnd-kit/core/dist/types'
|
||||
import { Block, Edge, Table, Target, Typebot } from 'models'
|
||||
import { AnchorsPositionProps } from 'components/board/graph/Edges/Edge'
|
||||
import {
|
||||
@ -7,6 +6,7 @@ import {
|
||||
blockAnchorsOffset,
|
||||
ConnectingIds,
|
||||
Endpoint,
|
||||
Coordinates,
|
||||
} from 'contexts/GraphContext'
|
||||
import { roundCorners } from 'svg-round-corners'
|
||||
import { headerHeight } from 'components/shared/TypebotHeader'
|
||||
|
@ -50,7 +50,8 @@ export const useTypebots = ({
|
||||
const params = stringify({ folderId })
|
||||
const { data, error, mutate } = useSWR<{ typebots: Typebot[] }, Error>(
|
||||
`/api/typebots?${params}`,
|
||||
fetcher
|
||||
fetcher,
|
||||
{ dedupingInterval: 0 }
|
||||
)
|
||||
if (error) onError(error)
|
||||
return {
|
||||
|
Reference in New Issue
Block a user