Skip to content

Commit 0f8fe15

Browse files
committed
Disable SSR
1 parent 8c1c143 commit 0f8fe15

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swr-models",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "SWR toolkit for abstracting API data models as React state objects.",
55
"keywords": [
66
"swr",
@@ -23,10 +23,12 @@
2323
"exports": {
2424
".": {
2525
"types": "./dist/index.d.ts",
26+
"react-server": "./dist/index.js",
2627
"import": "./dist/index.js",
2728
"require": "./dist/index.js"
2829
}
2930
},
31+
"sideEffects": false,
3032
"scripts": {
3133
"build": "tsc",
3234
"test": "jest",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
export { SWRModelEndpoint } from "./SWRModelEndpoint";
24
export { useModel } from "./SWRUtils";
35
export { SWRModelEndpointConfigOverride } from "./types";

0 commit comments

Comments
 (0)