Skip to content

Fix the back button when navigating through files on the task detail page#1225

Merged
Calvinp merged 1 commit into
decaffrom
fix_files_back_button
Aug 18, 2016
Merged

Fix the back button when navigating through files on the task detail page#1225
Calvinp merged 1 commit into
decaffrom
fix_files_back_button

Conversation

@Calvinp

@Calvinp Calvinp commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

Fixes the bug that caused the back button not to work while navigating through file system on the TaskDetail page.

The problem was it wasn't actually using the route to determine the file path, but to set state that determined the file path. The state wouldn't be updated when the back button was hit. The fix was to not use state at all.

cc @tpetr @kwm4385 @wolfd

@kwm4385

kwm4385 commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

Beat me to it lol
LGTM

@Calvinp

Calvinp commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

This actually turned out to be a great example for why using props to set initial state is bad.

@Jw0x47

Jw0x47 commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

Thanks @Calvinp !

@tpetr

tpetr commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

LGTM

@Calvinp Calvinp merged commit 18fcf3e into decaf Aug 18, 2016
@Calvinp Calvinp deleted the fix_files_back_button branch August 18, 2016 15:24
@tpetr tpetr modified the milestone: 0.10.0 Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants