{"library":"server-only-context","type":"library","category":null,"description":"`server-only-context` is a lightweight utility designed to provide request-scoped context specifically for React Server Components (RSC). It helps mitigate the problem of prop drilling in server-side rendering environments by leveraging React's experimental `cache` function to store and retrieve values associated with the current request. This ensures that context values are isolated between different concurrent server requests, which is crucial for multi-user applications. The current stable version, 0.1.0, indicates it's an early-stage project that is actively developed but may still be subject to changes. Its core differentiator is its exclusive design for the server-side, contrasting with traditional React Context which is primarily client-side or hydrates from server-rendered content. It offers a straightforward API to create getter/setter tuples for managing context values.","language":"javascript","status":"active","version":"0.1.0","tags":["javascript","typescript"],"install":[{"cmd":"npm install server-only-context","imports":["import serverContext from 'server-only-context';","import { getLocale, setLocale } from '@/context/locale';"]},{"cmd":"yarn add server-only-context","imports":[]},{"cmd":"pnpm add server-only-context","imports":[]}],"homepage":null,"github":"https://github.com/manvalls/server-only-context","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/server-only-context","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/server-only-context/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}