2020-09-05 22:50:45 +02:00
|
|
|
import BDV2 from "./v2"
|
|
|
|
const {useState} = BDV2.react
|
|
|
|
|
|
|
|
|
|
|
|
export function useForceUpdate(){
|
2020-10-14 00:50:42 +02:00
|
|
|
const [,setValue] = useState(0)
|
|
|
|
|
|
|
|
return function forceUpdate(){
|
|
|
|
setValue(e => e+1)
|
|
|
|
}
|
2020-09-03 21:54:24 +02:00
|
|
|
}
|