Skip to content

Commit

Permalink
fix(Forms): Use polyfilled structuredClone instead of global in useData
Browse files Browse the repository at this point in the history
We use the polyfilled structuredClone everywhere except this usage.
  • Loading branch information
Kim Røen committed Oct 10, 2024
1 parent 58f0c6c commit 11a2dff
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ import DataContext, {
} from '../../DataContext/Context'
import { SharedAttachments } from '../../DataContext/Provider'

/**
* Deprecated, as it is supported by all major browsers and Node.js >=v18
* So its a question of time, when we will remove this polyfill
*/
import structuredClone from '@ungap/structured-clone'

type PathImpl<T, P extends string> = P extends `${infer Key}/${infer Rest}`
? Key extends keyof T
? Rest extends ''
Expand Down

0 comments on commit 11a2dff

Please sign in to comment.