We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c1c143 commit 0f8fe15Copy full SHA for 0f8fe15
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "swr-models",
3
- "version": "1.0.11",
+ "version": "1.0.12",
4
"description": "SWR toolkit for abstracting API data models as React state objects.",
5
"keywords": [
6
"swr",
@@ -23,10 +23,12 @@
23
"exports": {
24
".": {
25
"types": "./dist/index.d.ts",
26
+ "react-server": "./dist/index.js",
27
"import": "./dist/index.js",
28
"require": "./dist/index.js"
29
}
30
},
31
+ "sideEffects": false,
32
"scripts": {
33
"build": "tsc",
34
"test": "jest",
src/index.ts
@@ -1,3 +1,5 @@
+"use client";
+
export { SWRModelEndpoint } from "./SWRModelEndpoint";
export { useModel } from "./SWRUtils";
export { SWRModelEndpointConfigOverride } from "./types";
0 commit comments