Skip to content

Commit 79977f2

Browse files
authored
Add use-client directive (#530)
1 parent d81e529 commit 79977f2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/hooks/useContent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import {SlotContent, VersionedSlotId, VersionedSlotMap} from '@croct/plug/slot';
24
import {JsonObject} from '@croct/plug/sdk/json';
35
import {FetchOptions} from '@croct/plug/plug';

src/hooks/useCroct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import {Plug} from '@croct/plug';
24
import {useContext} from 'react';
35
import {CroctContext} from '../CroctProvider';

src/hooks/useEvaluation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import {JsonValue} from '@croct/plug/sdk/json';
24
import {EvaluationOptions} from '@croct/sdk/facade/evaluatorFacade';
35
import {useEffect, useState} from 'react';

0 commit comments

Comments
 (0)