UNPKG
@hazae41/glacier
Version:
latest (2.2.6)
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.26
2.0.25
2.0.24
2.0.23
2.0.22
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.11-10
2.0.11-9
2.0.11-8
2.0.11-7
2.0.11-6
2.0.11-5
2.0.11-4
2.0.11-3
2.0.11-2
2.0.11-1
2.0.11-0
2.0.10
2.0.10-0
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.5-3
2.0.5-2
2.0.5-1
2.0.5-0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-114
2.0.0-113
2.0.0-112
2.0.0-111
2.0.0-110
2.0.0-109
2.0.0-108
2.0.0-107
2.0.0-106
2.0.0-105
2.0.0-104
2.0.0-103
2.0.0-102
2.0.0-101
2.0.0-100
2.0.0-99
2.0.0-98
2.0.0-97
2.0.0-96
2.0.0-95
Yet another React data (re)fetching library
github.com/hazae41/glacier
hazae41/glacier
@hazae41/glacier
/
dist
/
esm
/
src
/
libs
/
react
/
ref.mjs
16 lines
(13 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
{ useRef }
from
'react'
;
/** * A ref whose content is updated on each render *
@param
current
*
@returns
*/
function
useRenderRef
(
current
) {
const
ref =
useRef
(current); ref.
current
= current;
return
ref; }
export
{ useRenderRef };
//# sourceMappingURL=ref.mjs.map