Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radix-ui/react-context

Package Overview
Dependencies
Maintainers
6
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-context - npm Package Compare versions

Comparing version 1.1.1-rc.4 to 1.1.1-rc.5

4

dist/index.js

@@ -65,3 +65,3 @@ "use strict";

const { scope, children, ...context } = props;
const Context = scope?.[scopeName][index] || BaseContext;
const Context = scope?.[scopeName]?.[index] || BaseContext;
const value = React.useMemo(() => context, Object.values(context));

@@ -72,3 +72,3 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context.Provider, { value, children });

function useContext2(consumerName, scope) {
const Context = scope?.[scopeName][index] || BaseContext;
const Context = scope?.[scopeName]?.[index] || BaseContext;
const context = React.useContext(Context);

@@ -75,0 +75,0 @@ if (context) return context;

{
"name": "@radix-ui/react-context",
"version": "1.1.1-rc.4",
"version": "1.1.1-rc.5",
"license": "MIT",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc