NoticesStoreclass

new NoticesStore<S>()
Return
NoticesStore<S>
Store holding the live list of NoticeStore notices currently shown.

Store holding the live list of NoticeStore notices currently shown.

  • Disposing the store disposes (and closes) every notice it contains.

Examples

const notices = new NoticesStore(); notices.show("Hello");

Methods

Go

NoticesStore.show()method

Create and show a new notice, adding it to this list.

show(children?: ReactNode | undefined, status?: S | undefined): NoticeStore<S>