mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 03:50:11 +08:00
Prettified Code!
This commit is contained in:
1 parent
73fedc7593
commit
3e0654b435
10 files changed
+53
-52
No files matched your search
@@ -12,7 +12,7 @@ export function subscribe_to_changes(selector_fn, fn) {
|
||||
const previous = current;
|
||||
current = selector_fn(store.getState());
|
||||
if (previous !== current) {
|
||||
fn(previous, current);
|
||||
fn(previous, current);
|
||||
}
|
||||
};
|
||||
store.subscribe(handleChange);
|
||||
|
||||
Reference in new issue
Block a user