• Version 3.1.3
  • Published
  • 94.2 kB
  • 2 dependencies
  • MIT license


npm i @semantic-ui-react/event-stack
yarn add @semantic-ui-react/event-stack
pnpm add @semantic-ui-react/event-stack


Issues mentioned in `README` should be solved by other approaches: - `.addEventListener()` is blazing fast and is not a real performance issue - to solve issues with ordering in case when regular DOM event propogation is not available consider to use thi



variable instance

const instance: EventStack;


    class EventStack

    class EventStack extends React.PureComponent<EventStackProps> {}
    • This component exposes the EventStack API as public and provides a declarative way to manage it.

    property defaultProps

    static defaultProps: { pool: string; target: string };

      property propTypes

      static propTypes: {
      name: PropTypes.Validator<string>;
      on: PropTypes.Validator<
      ((...args: any[]) => any) | ((...args: any[]) => any)[]
      pool: PropTypes.Requireable<string>;
      target: PropTypes.Requireable<Object>;

        method componentDidMount

        componentDidMount: () => void;

          method componentDidUpdate

          componentDidUpdate: (prevProps: EventStackProps) => void;

            method componentWillUnmount

            componentWillUnmount: () => void;

              method render

              render: () => null;

                method subscribe

                subscribe: (props: Readonly<EventStackProps>) => void;

                  method unsubscribe

                  unsubscribe: (props: Readonly<EventStackProps>) => void;

                    Type Aliases

                    type CallableEventListener

                    type CallableEventListener = EventListener & {
                    called?: boolean;

                      type EventListeners

                      type EventListeners = CallableEventListener[];

                        type GenericMap

                        type GenericMap<T> = Map<String, T>;

                          type InputEventListener

                          type InputEventListener = EventListener | EventListener[];

                            type InputTargetElement

                            type InputTargetElement =
                            | boolean
                            | string
                            | TargetElement
                            | React.RefObject<TargetElement>;

                              type Options

                              type Options = {
                              pool?: string;
                              target?: InputTargetElement;

                                type TargetElement

                                type TargetElement = Document | HTMLElement | Window;

                                  Package Files (4)

                                  Dependencies (2)

                                  Dev Dependencies (41)

                                  Peer Dependencies (2)


                                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@semantic-ui-react/event-stack.

                                  • Markdown
                                  • HTML
                                    <a href="https://www.jsdocs.io/package/@semantic-ui-react/event-stack"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>