[Update] Plugins: Send all logics to the plugins when it's registered.

This commit is contained in:
Sakamoto Shiina
2025-03-30 04:18:54 +09:00
parent 5681038c22
commit b0b68233aa
5 changed files with 11 additions and 49 deletions

View File

@@ -2,16 +2,6 @@ const store_hooks = {};
export const initStore = (createAtomWithHook) => {
Object.assign(store_hooks, {
// useStore_CountPluginState: createAtomWithHook(
// { count: 10 },
// "CountPluginState"
// ).useHook,
// useStore_AnotherState: createAtomWithHook(
// { value: "initial" },
// "AnotherState"
// ).useHook,
useStore_IsSubtitlePlaying: createAtomWithHook(false, "IsSubtitlePlaying", { is_state_ok: true }).useHook,
useStore_SubtitlePlaybackMode: createAtomWithHook("relative", "SubtitlePlaybackMode", { is_state_ok: true }).useHook,
useStore_SubtitleAbsoluteTargetTime: createAtomWithHook({