kernl API
    Preparing search index...

    Function createNoticeStore

    • The notices: each goes by itself after its tone's lifetime, or when dismissed.

      Parameters

      • schedule: (callback: () => void, delayMs: number) => void = ...

        Runs a callback after a delay; setTimeout by default.

      Returns NoticeStore

      An empty store.

      const notices = createNoticeStore();
      const host = { ...rest, notify: (notice) => void notices.push(notice) };