smsmslib 1.0.26 → 1.0.28
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.
- package/package.json +1 -1
- package/system/useref.js +7 -4
- package/tags_JavaScript +1 -2
package/package.json
CHANGED
package/system/useref.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {useRef} from "react";
|
|
2
|
-
import {
|
|
2
|
+
import {useMemo} from 'react';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export function sj_ref_use(hf_type, init, user)
|
|
@@ -13,10 +13,13 @@ export function sj_ref_use(hf_type, init, user)
|
|
|
13
13
|
|
|
14
14
|
function sj_ref_onAction_use(hf_type, o_ref, user)
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
function wrapper()
|
|
17
|
+
{
|
|
18
|
+
const f_onAction = sj_ref_onAction_create(hf_type, o_ref, user);
|
|
19
|
+
return f_onAction;
|
|
20
|
+
}
|
|
19
21
|
|
|
22
|
+
const f_onAction = useMemo(wrapper, [hf_type, o_ref, user]);
|
|
20
23
|
return f_onAction;
|
|
21
24
|
}
|
|
22
25
|
|
package/tags_JavaScript
CHANGED
|
@@ -24,5 +24,4 @@ sj_ref_use /home/sakae/work/react/smsmslib/system/useref.js ?^export function sj
|
|
|
24
24
|
sj_state_onAction /home/sakae/work/react/smsmslib/system/usestate.js ?^export function sj_state_onAction(value, f_set, hf_type, user)$?;" f
|
|
25
25
|
sj_state_use /home/sakae/work/react/smsmslib/system/usestate.js ?^export function sj_state_use(f_init, hf_type, user)$?;" f
|
|
26
26
|
specified /home/sakae/work/react/smsmslib/system/usereducer.js ?^/* Don't use a hook inside the function specified in the argument f_init. */$?;" f
|
|
27
|
-
wrapper /home/sakae/work/react/smsmslib/system/usereducer.js ?^ function wrapper(
|
|
28
|
-
wrapper /home/sakae/work/react/smsmslib/system/usereducer.js ?^ function wrapper(value, f_onAction, user)$?;" f
|
|
27
|
+
wrapper /home/sakae/work/react/smsmslib/system/usereducer.js ?^ function wrapper()$?;" f
|