Explorar o código

Merge branch 'release/1.0.5'

lfabl %!s(int64=2) %!d(string=hai) anos
pai
achega
bc5a12e25a
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      package.json
  2. 1 1
      src/core/index.tsx

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "ncore-context",
-    "version": "1.0.4",
+    "version": "1.0.5",
     "description": "NİBGAT® | NCore - Context",
     "main": "lib/index.js",
     "module": "lib/index.js",

+ 1 - 1
src/core/index.tsx

@@ -59,7 +59,7 @@ class NCoreContext<T extends {} | undefined, K extends ConfigType<T>> {
     };
 
     // event listeners:
-    addEventListener = (key: string, func: (state: T) => void) => {
+    addEventListener = (key: string, func: (payload: any, state: T) => void) => {
         this.subscribers.push({
             func,
             key