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

react-hook-notification

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-notification - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

dist/main/index.js

@@ -1,2 +0,2 @@

import { useCallback, useEffect } from 'react';
import { useCallback } from 'react';
import { v4 as uuidv4 } from 'uuid';

@@ -7,7 +7,5 @@ import { Notifications } from '../presentation/components/Notifications';

const notificationStore = NotificationStore.getInstance();
const initialize = Initialize.getInstance();
initialize.render(Notifications);
export const useNotification = (hookParams = { position: 'top-right' }) => {
useEffect(() => {
const initialize = Initialize.getInstance();
initialize.render(Notifications);
}, []);
const info = useCallback((notificationParams) => {

@@ -14,0 +12,0 @@ const id = uuidv4();

@@ -8,2 +8,3 @@ import { useEffect, useRef, useState } from 'react';

useEffect(() => {
clearTimeout(TIMER);
if (isVisible) {

@@ -10,0 +11,0 @@ showRef.current = true;

{
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -4,0 +4,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