File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -321,8 +321,20 @@ export declare function useEffect(
321321 deps ?: DependencyList ,
322322) : void ;
323323
324+ /**
325+ * `useMemo` will only recompute the memoized value when one of the `deps` has changed.
326+ */
324327export declare function useMemo < T > ( factory : ( ) => T , deps : DependencyList ) : T ;
325328
329+ /**
330+ * `useCallback` will return a memoized version of the callback that only changes if one of the `inputs`
331+ * has changed.
332+ */
333+ export declare function useCallback < T extends Function > (
334+ callback : T ,
335+ deps : DependencyList ,
336+ ) : T ;
337+
326338type FetchOptions = {
327339 responseType ?:
328340 | "arraybuffer"
Original file line number Diff line number Diff line change 11{
22 "name" : " alem" ,
33 "description" : " Create web3 applications for NEAR BOS with a focus on performance and friendly development." ,
4- "version" : " 1.0.0-beta.35 " ,
4+ "version" : " 1.0.0" ,
55 "main" : " main.js" ,
66 "types" : " index.d.ts" ,
77 "author" : " Wenderson Pires - wendersonpires.near" ,
You can’t perform that action at this time.
0 commit comments