Skip to content

Clear views array on job_create event - #24

Merged
mattnibs merged 1 commit into
masterfrom
reset-views
Jan 19, 2016
Merged

mattnibs merged 1 commit into
masterfrom
reset-views

Conversation

@mattnibs

Copy link
Copy Markdown
Member

Fixes juttle/outrigger#83

When running a different program from our original program, there
was an issue with the old views getting reinstantiated because they
still existed in redux store. This change resets the views in the store
to an empty object so new views are only instantiated when we have info
about them.

@mattnibs

Copy link
Copy Markdown
Member Author

@go-oleg

Comment thread src/view/reducers.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly s/restart/reset/

@go-oleg

go-oleg commented Jan 19, 2016

Copy link
Copy Markdown
Contributor

looks good

Fixes juttle/outrigger#83

When running a different program from our original program, there
was an issue with the old views getting reinstantiated because they
still existed in redux store. This change resets the views in the store
to an empty object so new views are only instantiated when we have info
about them.
mattnibs added a commit that referenced this pull request Jan 19, 2016
Clear views array on job_create event
@mattnibs
mattnibs merged commit 1a2b049 into master Jan 19, 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.

2 participants