@sylphx/lens-solidstart
v2.1.14
Published
SolidStart integration for Lens API framework
Readme
@sylphx/lens-solidstart
SolidStart integration for the Lens API framework with SSR support.
Installation
bun add @sylphx/lens-solidstartUsage
import { createQuery, createMutation } from "@sylphx/lens-solidstart";
import { client } from "./client";
export default function Page() {
const user = createQuery(() => client.user.get({ id: "1" }));
return (
<Show when={!user.loading} fallback={<div>Loading...</div>}>
<div>{user.data?.name}</div>
</Show>
);
}License
MIT
Built with @sylphx/lens-client, @sylphx/lens-solid, and @sylphx/lens-server.
✨ Powered by Sylphx
