749 B
749 B
Astro Resume
Utilities for serializing data from server for use in the client.
ResumableAstro component takesidanddataresume(id: string): Objectfunction for use int he client takes anidstring and returns thedataas Object
Intallation
npm i @ayco/astro-resume
Usage
---
import Resumable from "@ayco/astro-resume";
const data = {
hello: 'world'
}
---
<Resumable id="astro-obj" data={data} />
<script>
import {resume} from '@ayco/astro-resume';
console.log(
resume('astro-obj')
)
</script>
Found issues?
Send a plain text email to ~ayoayco/astro-resume@todo.sr.ht or report via SourceHut