react-hook-notification
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47614
1081