Socket
Book a DemoInstallSign in
Socket

@cloudscape-design/collection-hooks

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudscape-design/collection-hooks - npm Package Compare versions

Comparing version

to
1.0.67

9

cjs/use-collection-state.js

@@ -18,9 +18,4 @@ "use strict";

});
return [
state,
(0, utils_js_1.createActions)({
dispatch,
collectionRef,
}),
];
const actions = (0, react_1.useMemo)(() => (0, utils_js_1.createActions)({ dispatch, collectionRef }), [dispatch, collectionRef]);
return [state, actions];
}
{
"commit": "60a26d1f95d7fd2e06e285bfa4230e328c3dcade"
"commit": "6d79b19d33bed5ffe1375389460c5cd8d33ed626"
}
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { useReducer } from 'react';
import { useReducer, useMemo } from 'react';
import { createActions, collectionReducer } from './utils.js';

@@ -15,9 +15,4 @@ export function useCollectionState(options, collectionRef) {

});
return [
state,
createActions({
dispatch,
collectionRef,
}),
];
const actions = useMemo(() => createActions({ dispatch, collectionRef }), [dispatch, collectionRef]);
return [state, actions];
}
{
"name": "@cloudscape-design/collection-hooks",
"version": "1.0.66",
"version": "1.0.67",
"license": "Apache-2.0",

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.