Commit Graph
7 Commits
Author SHA1 Message Date
Troray 430336c4c1 Update useSubscriptionSync.ts 2026-01-14 02:32:55 +08:00
Troray dfdeef04a7 fix: stop infinite requests after adding new subscription
Adding a new subscription triggered an infinite loop of JSON fetches
because useSubscriptionSync was subscribing to settingsStore changes,
which caused a cycle: store change → state update → sync → save →
store change.
- Remove settingsStore subscription to break the infinite loop
- Add refs to ensure sync runs only once per component mount
- Enable 5-minute cooldown to prevent redundant syncs
2026-01-14 01:43:32 +08:00
kuekhaoyang 04aa734ff8 Update 2026-01-13 16:32:01 +08:00
kuekhaoyang 26cfa10c3a feat: Replace adult and secret content features with a new premium content system. 2026-01-04 19:04:27 +08:00
kuekhaoyang 7c1f1db046 refactor: remove runtime fetching of environment subscriptions and envSubscriptionsSet state. 2025-12-25 16:38:27 +08:00
kuekhaoyang 48d6568a70 feat: add support for environment variable defined subscription sources and runtime config API 2025-12-25 16:25:53 +08:00
kuekhaoyang 609fba7571 feat: Implement automatic subscription source syncing, initialize subscriptions from environment, and integrate into home page. 2025-12-25 12:11:46 +08:00