mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: mixer tank selector
This commit is contained in:
1 parent
7afce6cbcb
commit
6e0429332d
9 files changed
+161
-45
No files matched your search
@@ -39,6 +39,8 @@ export class Varuna<Type, Arguments = void> {
|
||||
}
|
||||
|
||||
useInitialization(...args: Arguments[]) {
|
||||
if (this.initialized) return;
|
||||
|
||||
const initializedThisMount = useRef(false);
|
||||
|
||||
if (initializedThisMount.current) return;
|
||||
@@ -53,6 +55,7 @@ export class Varuna<Type, Arguments = void> {
|
||||
|
||||
private dispatch() {
|
||||
const state = this.state;
|
||||
console.log("dispatched");
|
||||
this.listeners.forEach((callback) => callback(state));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user