UseMessageOptions
Properties
Section titled “Properties”enabled?
Section titled “enabled?”optional enabled?: boolean;Subscribe at all. Default true.
false unsubscribes rather than filtering inside the handler, so a
component that is not interested costs nothing — and the alternative,
calling the hook conditionally, is not allowed.
optional once?: boolean;Unsubscribe after the first message.