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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smsmslib",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Reusable functions for me.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/system/useref.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {useRef} from "react";
2
- import {sj_memo_use} from "smsmslib/system/usememo";
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
- const a_arg = [hf_type, o_ref, user];
17
- const a_dep = a_arg;
18
- const f_onAction = sj_memo_use(sj_ref_onAction_create, a_arg, a_dep);
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(hf_type, f_dispatch, user)$?;" f
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