-
Notifications
You must be signed in to change notification settings - Fork 565
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
Move viewing revisions logic to redux #1903
Move viewing revisions logic to redux #1903
Conversation
This patch introduces a new set utility library for adding, removing, and toggling values in a set to make a working "option bag." It also changes the `visiblePane` state from a list of strings into this new option bag, removing the reliance on the `lodash` equivalent functions for using the array. This is meant to be precursor work for #1901 and #1903
283e8e0
to
0c1983a
Compare
71c9242
to
37f9321
Compare
@@ -1,5 +1,5 @@ | |||
import React, { Component } from 'react'; | |||
import { connect } from 'react-redux'; | |||
import { connect, DispatchProp } from 'react-redux'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This inclusion was probably unintended.
@@ -86,7 +86,15 @@ const showNoteInfo: A.Reducer<boolean> = (state = false, action) => { | |||
|
|||
case 'App.toggleNavigation': | |||
return false; | |||
default: | |||
return state; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe belongs in another PR? It looks like we introduced this bug and didn't notice it because undefined
collapses into false
Fix
Move viewing revisions logic to redux.
Test