@aiszlab/relax 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,4 @@
4
4
  * @description
5
5
  * state always be same after first render
6
6
  */
7
- export declare const useOnceState: <T>(initialState: T | (() => T)) => T | (() => T);
7
+ export declare const useOnceState: <T>(initialState: T | (() => T)) => T;
@@ -7,7 +7,7 @@ import { useState } from 'react';
7
7
  * state always be same after first render
8
8
  */
9
9
  const useOnceState = (initialState) => {
10
- return useState(() => initialState)[0];
10
+ return useState(initialState)[0];
11
11
  };
12
12
 
13
13
  export { useOnceState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiszlab/relax",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "react utils collection",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",