NodeWasDiscarded event fires after NodeWillUnmount unless the end
user specified that the node should not be discarded when it's unmounted.
A discarded node is defined as a node that is unmounted and will not be mounted again.
The latter is a promise by the end user, not enforced by Laminar.
Internally, when discarding a node Laminar kills all of the subscriptions that it owned.
NodeWasDiscarded event is your last chance to do any cleanup related to this node.
Note: There currently is no way for the end user to specify that the node should not be
discarded, so the end user implicitly promises to not re-mount nodes which have
been unmounted.
NodeWasDiscarded
event fires afterNodeWillUnmount
unless the end user specified that the node should not be discarded when it's unmounted.A discarded node is defined as a node that is unmounted and will not be mounted again. The latter is a promise by the end user, not enforced by Laminar.
Internally, when discarding a node Laminar kills all of the subscriptions that it owned. NodeWasDiscarded event is your last chance to do any cleanup related to this node.
Note: There currently is no way for the end user to specify that the node should not be discarded, so the end user implicitly promises to not re-mount nodes which have been unmounted.