v0.4.8
Added support for Sorcery.defer
so the runtime does not break in the context of hot-reloading.
Usage:
import { Sorcery } from "@zaydek/sorcery/dist/runtime"
import { useEffect } from "react"
function Component() {
useEffect(() => {
Sorcery.init()
return Sorcery.defer
})
return ...
}