You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an object is send through an observer, and the observer is binded, the hook of the bind within React returns an array (as in Object.entries(obj)).
Expected: the actual object.
Example:
const [useObj] = bind(observer$.pipe(
tap(console.log) // <-- returns an object as expected. e.g. { key: "value"}
), {});
export default function useDependency(dependency) {
const obj = Obj(); // <--- returns an array as if Object.entries(obj) has been executed. Expecting an object, but returns: [key, value].
The text was updated successfully, but these errors were encountered:
If an object is send through an observer, and the observer is binded, the hook of the
bind
within React returns an array (as in Object.entries(obj)).Expected: the actual object.
Example:
The text was updated successfully, but these errors were encountered: