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
{{ message }}
This repository has been archived by the owner on May 25, 2021. It is now read-only.
When component contains window then state doesnt show(we have message: "No state to show").
I think it is connection with this bugs: #1389, #1368.
I have solution:
my changes in augury/src/utils/serialize.ts
import { parse, stringify } from 'jsan';
/// The intent of serialize() is to create a function that is itself able to
/// reconstruct {@param object} into an exact clone that includes circular
/// references and objects that are not normally serializable by something like
/// {@link JSON.stringify}. It returns a string containing the code for the
/// reconstructor function. That value can be passed to a Function constructor
/// which will parse it into a function that can then be invoked to recreate
/// the original object. In this way we are able to serialize an object for
/// transmission across thread boundaries even if it is very complex and
/// contains `unserializable' constructs (like circular references). This is
/// used in our message passing operations to reliably send complex objects.
function windowReplacer(key, value) {
if (value && value.window === value) {
return '[WINDOW]';
}
return value;
}
/// Serialize a complex object into a function that can recreate the object.
export const serialize = value => {
return stringify(value, windowReplacer, null, false);
};
/// Deserialize a function string and invoke the resulting object recreator.
export const deserialize = value => {
return value === 'null' || value === null ? null : parse(value);
};
We just released a new version of Augury (1.24.0). Could you please try that version and see if that solves your issue. We have updated some of the serialize functionality in there.
Thanks.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When component contains window then state doesnt show(we have message: "No state to show").
I think it is connection with this bugs: #1389, #1368.
I have solution:
my changes in augury/src/utils/serialize.ts
I found the same problem in other extension:
zalmoxisus/redux-devtools-extension#598
and here is fix:
zalmoxisus/redux-devtools-extension@adbda74
The text was updated successfully, but these errors were encountered: