Type Alias CleanupFunction

CleanupFunction: () => void

Cleanup function which can optionally be returned by effect function. It is called before effect function is called again and on effect destruction.

Type declaration

    • (): void
    • Returns void