Hibernation Plugin docs
The Hibernation Plugin helps you fully leverage Hibernation APIs, making it especially useful for adapters like Cloudflare Websocket Hibernation.
import { experimental_HibernationPlugin as HibernationPlugin } from '@orpc/server/hibernation'
const handler = new RPCHandler(router, {
plugins: [
new HibernationPlugin(),
],
})By utilize Hibernation APIs you can build a scalable web socket app with very low pricing.
.queryKey, .streamedKey, .infiniteKey, .mutationKey docs
Everything is typesafe now
queryClient.setQueryData(orpc.planet.find.queryKey({ input: { id: 123 } }), (old) => {
return { ...old, id: 123, name: 'Earth' }
})🚀 Features
- server: Hibernation Plugin - by @unnoq in #633 (487a1)
- tanstack-query:
.queryKey,.streamedKey,.infiniteKey,.mutationKey- by @unnoq in #625 (9f1bc)