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

use-carousel-hook

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-carousel-hook - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

CHANGELOG.md
# Changelog
## [0.0.6]
- Fix bug with inView values not updating
## [0.0.5]

@@ -4,0 +8,0 @@

4

dist/useCarousel.js

@@ -18,3 +18,3 @@ import { useState, useRef, useEffect, useReducer, useCallback } from 'react';

}, [ref.current]);
const updateInView = useCallback(() => {
const updateInView = () => {
const carouselEl = ref.current;

@@ -46,3 +46,3 @@ const childEls = [...carouselEl.children];

setInView(inView);
}, [ref.current]);
};
useEffect(() => {

@@ -49,0 +49,0 @@ window.addEventListener('resize', updateMaxIndex);

{
"name": "use-carousel-hook",
"version": "0.0.5",
"version": "0.0.6",
"description": "Adds functionality for carousels using React hooks",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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