Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

0.0.10 breaks devtools #61

Closed
idan opened this issue Nov 30, 2015 · 13 comments · Fixed by #70
Closed

0.0.10 breaks devtools #61

idan opened this issue Nov 30, 2015 · 13 comments · Fixed by #70

Comments

@idan
Copy link

idan commented Nov 30, 2015

I originally filed this issue on freeqaz/redux-simple-router-example#1. I am able to reproduce the behavior elsewhere by switching between 0.0.8 and 0.0.10, so maybe this is a more appropriate place to file the issue?

Gif for your viewing pleasure:

The only change I see to the state as reported by devtools is the addition of changeId.

@jlongster
Copy link
Member

The gif (which is awesome, really helps thanks) is showing 0.0.8. Are you sure that it worked in 0.0.8 and broke in 0.0.10? It's confusing that you aren't showing it breaking the latest version.

@idan
Copy link
Author

idan commented Nov 30, 2015

Hmm, weird. I definitely recorded it with the latest version, which included changeId in the state. Maybe I didn't properly blow away my node_modules? Will retry.

@idan
Copy link
Author

idan commented Nov 30, 2015

From the other issue, here's screenshots of the state for each version:

Here's devtools' picture of the state changes in 0.0.8:

cursor_and_redux-simple-router_example

And here's the same thing for 0.0.10:

redux-simple-router_example_and_package_json_-_users_igazit_dropbox_heroku_redux-simple-router-example-atom_and_configurestore_dev_js-_users_igazit_dropbox_heroku_herokudata-_atom

@jlongster
Copy link
Member

Oh, you are right. I think I was looking at the action but thinking that was state. In previous versions we actually stored the avoidRouterUpdate flag in the state.

I'll take a look soon.

@rgdelato
Copy link

rgdelato commented Dec 1, 2015

Glad to see that someone else reported this! I came in to report the same issue, except that I don't know how to make cool animated GIFs, so I maybe wouldn't have been as helpful.

(P.S. What are you using to make your animated GIFs?)

@idan
Copy link
Author

idan commented Dec 1, 2015

@rdelatorre I use cloudapp, but there are a number off free options out there along the power/simplicity curve:

@fkrauthan
Copy link

I have the same issue with my project. I started right away with the latest version but the ReduxDevTool events have no influence on my visible application state.

@fkrauthan
Copy link

The problem is the history listen dispatching of event. You set avoidRouterUpdate to true which results in not counting up the change id. So lastChangeId is always gonna be equal to changeId so you never update the route when the store changes.

@jlongster
Copy link
Member

@kjbekkelund Have you tried it with devtools yet? I will very soon but work has just been crazy. I'll add the devtools to the basic example which will help have a quick simple project to diagnose issues.

@geowarin geowarin mentioned this issue Dec 3, 2015
@geowarin
Copy link
Contributor

geowarin commented Dec 3, 2015

As @fkrauthan says, incrementing the changeId systematically does fix the problem.
However, it also breaks a bunch of tests.

My guess is https://github.com/jlongster/redux-simple-router/blob/master/src/index.js#L95 will stop redux from replaying the changes when going back in time.

@fkrauthan
Copy link

Don't we just need a flag outside of the two listeners that gets used to prevent a router change triggering a endless loop instead of relaying on that id?

@kimjoar
Copy link
Collaborator

kimjoar commented Dec 3, 2015

@jlongster Haven't had time to play with devtools yet. Will try to get some time to do it soon.

@idan
Copy link
Author

idan commented Dec 8, 2015

❤️ ✨ Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants