0.1.0 • Published 8 months ago

solid-relay v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

solid-relay

SolidJS bindings for Relay (Experimental)

Nothing is finalized yet and therefore everything (including APIs, error handling, and cache policy) is subject to change. Expect major breaking changes to happen.

const App = () => {
  const query = createLazyLoadQuery(
    graphql`
      query AppQuery {
        viewer { login }
      }
    `,
    {}
  )
  return (
    <Show when={query()}>
      {(query) => <p>{query().viewer.login}</p>}
    </Show>
  )
}
0.1.0

8 months ago

0.0.1

2 years ago