-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux devtools usability question #4
Comments
I agree that the view of the actions are currently not too useful in the
redux devtools. I will have to take a closer look at how to improve this. I
am open to ideas or suggestions.
Hooking into the JSON replacer sounds promising. Good idea.
…On Mon, Jan 16, 2017 at 09:52 Bartosz ***@***.***> wrote:
Hi,
Do you have any tips for improving experience with redux devtools? It
prints JSON representation of the runtime data, which means that sometimes
it just doesn't show relevant info, for example empty constructor of a sum
type is displayed as {} (chrome would display ConName {} where ConName is
just constructor.name of the JS object).
I was able to improve it a bit by hooking own JSON replacer, but it's far
from complete.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAVYy1oIFMTH4DATm4RgIvHKWBuPRwGrks5rS4QVgaJpZM4Lkoyv>
.
|
I currently got away with following hack:
This gives something like this:
but it doesn't do anything useful with contructors that don't take any values. (And I don't have corresponding |
Nice. Thanks for sharing. I wonder if there is a way to move the serialize/deserialize into PureScript and use Argonaut's |
I guess just Generic instance would do. I asked around an some people on IRC suggested using 'purescript-foreign-generic'. Now, I dont know what are exact differences yet, but you're right it would first require change in devtools to allow own serialise/deserialize. Probably doable, but will require some time, so for now Im Rolling with above hack. |
Indeed, generic would work. Good idea. |
Maybe it could be similar to the way we support ImmutableJS. Redux Extension allows you to mark specific data, adding a As for classes, apart from Also you could send data to the extension right from PureScript, but you'll have to implement monitor actions by yourself in this case. |
Wow! Thanks @zalmoxisus for the ideas and pointers. This looks like just what we need. https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#parameters |
Hi,
Do you have any tips for improving experience with redux devtools? It prints JSON representation of the runtime data, which means that sometimes it just doesn't show relevant info, for example empty constructor of a sum type is displayed as
{}
(chrome would displayConName {}
whereConName
is justconstructor.name
of the JS object).I was able to improve it a bit by hooking own JSON replacer, but it's far from complete.
The text was updated successfully, but these errors were encountered: