File tree 1 file changed +4
-2
lines changed
packages/unhead/src/legacy
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { DeprecationsPlugin } from '../plugins/deprecations'
16
16
import { PromisesPlugin } from '../plugins/promises'
17
17
import { ServerEventHandlerPlugin } from '../server/plugins/eventHandlers'
18
18
import { PayloadPlugin } from '../server/plugins/payload'
19
+ import { createDebouncedFn , renderDOMHead } from "unhead/client" ;
19
20
20
21
export * from './useScript'
21
22
@@ -42,7 +43,6 @@ export function createServerHead<T extends Record<string, any> = Head>(options:
42
43
document : false ,
43
44
plugins : [
44
45
...( options . plugins || [ ] ) ,
45
- DomPlugin ( ) ,
46
46
DeprecationsPlugin ,
47
47
PromisesPlugin ,
48
48
ServerEventHandlerPlugin ,
@@ -57,7 +57,9 @@ export function createHead<T extends Record<string, any> = Head>(options: Create
57
57
...options ,
58
58
plugins : [
59
59
...( options . plugins || [ ] ) ,
60
- DomPlugin ( ) ,
60
+ DomPlugin ( {
61
+ render : createDebouncedFn ( ( ) => renderDOMHead ( activeHead . value ) , fn => setTimeout ( ( ) => fn ( ) , 10 ) ) ,
62
+ } ) ,
61
63
DeprecationsPlugin ,
62
64
PromisesPlugin ,
63
65
ClientEventHandlerPlugin ,
You can’t perform that action at this time.
0 commit comments