Skip to content

v0.4.8

Compare
Choose a tag to compare
@zaydek zaydek released this 04 Nov 05:27
· 722 commits to main since this release

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 ...
}