lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
121 stars 6 forks source link

feat: "use cache" directive #60

Closed lazarv closed 1 month ago

lazarv commented 1 month ago

Introduces the "use cache" directive to drive caching any function on the server side utilizing the already existing useCache() helper function, the in-memory caching solution, and a modified inline "use server" plugin.

Adds "use cache" tests, documentation, and minor styling tweaks to the documentation and the error indicator in development mode.

Read more about the directive in the updated documentation.

github-actions[bot] commented 1 month ago

✅ Documentation preview deployed to: https://react-server-docs-j5lshnd2w-lazarv-team.vercel.app