mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
Temporary hotfix to resolve fatal 'setState() called during build' errors caused by lazy evaluation of dirty provider dependency chains during high-frequency status transitions. - Establishes eager evaluation by listening to `activeProxyNotifierProvider` at the root container level during bootstrap to resolve dirty state flushes in microtasks. - Refactors `serviceRunningProvider` and all downstream dependent stream/future notifiers to execute synchronously to prevent build-phase timing hops. - Defers secondary state updates using `Future.microtask()`. Note: This is a temporary architectural patch to bypass Riverpod's lazy widget evaluation mechanics under high-frequency stream updates. A full core communication redesign is recommended for future maintenance to address this natively. |
||
|---|---|---|
| .. | ||
| core | ||
| features | ||
| gen | ||
| hiddifycore | ||
| singbox/model | ||
| utils | ||
| bootstrap.dart | ||
| main_prod.dart | ||
| main.dart | ||
| riverpod_observer.dart | ||