Skip to content

Commit 43cd6d3

Browse files
authored
only render functional components in the client (sagalbot#863)
1 parent 8c68718 commit 43cd6d3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/guide/components.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export default {
2828
};
2929
```
3030

31-
<ClearButtonOverride />
31+
<ClientOnly>
32+
<ClearButtonOverride />
33+
</ClientOnly>
3234

3335
The same approach applies for `multiple` selects:
3436

@@ -53,7 +55,9 @@ export default {
5355
};
5456
```
5557

56-
<OpenIndicatorOverride />
58+
<ClientOnly>
59+
<OpenIndicatorOverride />
60+
</ClientOnly>
5761

5862
## Setting Globally at Registration
5963

@@ -78,6 +82,7 @@ vSelect.props.components.default = () => ({
7882
Vue.component(vSelect)
7983
```
8084

81-
<CustomComponentRegistration />
82-
85+
<ClientOnly>
86+
<CustomComponentRegistration />
87+
</ClientOnly>
8388

0 commit comments

Comments
 (0)