-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the problem
The onMount function typing allows the reception of an asynchronous function as long as this function does not return a cleanup
The typing of the $effect rune does not allow the same, even though it is much more useful for it than for onMount and even though $effect is being marketed as an alternative to onMount
Describe the proposed solution
Change the typing to, just like onMount, allow asynchronous function as a callback as long as this callback does not return a cleanup
Importance
nice to have
skaldebane
Metadata
Metadata
Assignees
Labels
No labels