vue3-yuanma/packages/observer/src/lock.ts

11 lines
144 B
TypeScript
Raw Normal View History

2018-09-19 23:35:38 +08:00
// global immutability lock
export let LOCKED = true
export function lock() {
LOCKED = true
}
export function unlock() {
LOCKED = false
}