Explorar o código

Merge branch 'bugfix/addeventlistener-payload-add' into develop

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

+ 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