#In the context of SolidStart, does onMount and onCleanup only run on the client?
2 messages · Page 1 of 1 (latest)
I know its not exactly an answer to your question, but solid-primitives/event-listener have this functionality written for easy reactive listening on the window. Here is the repo: https://github.com/solidjs-community/solid-primitives/tree/main/packages/event-listener#windoweventlistener