@exodus/react-navigation-core
Advanced tools
Comparing version 6.1.1-exodus.0 to 6.1.1-exodus.1
@@ -22,3 +22,4 @@ "use strict"; | ||
}); | ||
const listeners = React.useRef(Object.create(null)); | ||
const listeners = React.useRef({}); | ||
Object.setPrototypeOf(listeners.current, null); | ||
const create = React.useCallback(target => { | ||
@@ -25,0 +26,0 @@ const removeListener = (type, callback) => { |
@@ -20,6 +20,7 @@ "use strict"; | ||
current: keyedListeners | ||
} = React.useRef(Object.assign(Object.create(null), { | ||
} = React.useRef({ | ||
getState: {}, | ||
beforeRemove: {} | ||
})); | ||
}); | ||
Object.setPrototypeOf(keyedListeners, null); | ||
const addKeyedListener = React.useCallback((type, key, listener) => { | ||
@@ -26,0 +27,0 @@ keyedListeners[type][key] = listener; |
@@ -11,3 +11,4 @@ import * as React from 'react'; | ||
}); | ||
const listeners = React.useRef(Object.create(null)); | ||
const listeners = React.useRef({}); | ||
Object.setPrototypeOf(listeners.current, null); | ||
const create = React.useCallback(target => { | ||
@@ -14,0 +15,0 @@ const removeListener = (type, callback) => { |
@@ -9,6 +9,7 @@ import * as React from 'react'; | ||
current: keyedListeners | ||
} = React.useRef(Object.assign(Object.create(null), { | ||
} = React.useRef({ | ||
getState: {}, | ||
beforeRemove: {} | ||
})); | ||
}); | ||
Object.setPrototypeOf(keyedListeners, null); | ||
const addKeyedListener = React.useCallback((type, key, listener) => { | ||
@@ -15,0 +16,0 @@ keyedListeners[type][key] = listener; |
{ | ||
"name": "@exodus/react-navigation-core", | ||
"description": "Core utilities for building navigators", | ||
"version": "6.1.1-exodus.0", | ||
"version": "6.1.1-exodus.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
538216
12928