-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migrate Redux to Mobx #118
base: dev
Are you sure you want to change the base?
Conversation
import { RootStore } from './root'; | ||
|
||
export class ConsoleStore { | ||
rootStore: typeof RootStore; |
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.
There should be a better way to declare the type of RootStore
but we'll just leave it like this for now.
renderer/stores/console.ts
Outdated
consoleUnread = false; | ||
|
||
constructor(rootStore: typeof RootStore) { | ||
makeAutoObservable(this); |
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.
makeAutoObservable
will automatically make fields defined in the class observable
|
||
constructor() { | ||
this.console = new ConsoleStore(this); | ||
/** Initialize more stores here (try to keep it in alphabetical order) */ |
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.
After defining a Store, make sure to create an instance of it in the RootStore
here.
* Bootstrap version updated to 1.5.2 * what am i doing * Changed Graph to Container and smPush/smPull to xs * replaced Label with Badge, Navbar.header with Navbar, and Navbar.Form pullRight with Navbar * ConsoleOutput done. Fixing typescript errors on ConfigBox * straight up removed smPush and smPull * Fixed bsStyle for button and changed to variant in UpdateBox * upgrade bootstrap in Editor, upgrade glyphs to FA * ConsoleOutput done. ConfigBox has one more error * ConsoleOutput done. ConfigBox almost done (validation error left) * updated Gamepad.tsx and GamepadList.tsx * Working on Formik, added isValid props to Form.Control * add PeripheralGroup component w collapse hook * rid leftover old bootstrap * last second bootstrap fixes * fix bootstrap mostly * Fixed editor bsSize, fixed swapped editor/peripherals, added margin to peripherals * add default font value * Added margin to gamepadlist, ordered peripherals/gamepad/editor correctly * Dnav background * Added margin to top of App * look, a dark theme! Co-authored-by: meshankhosla <[email protected]> Co-authored-by: Thomas Lee <[email protected]> Co-authored-by: Andrew Dacayanan <[email protected]> Co-authored-by: Saketh Panchumarthy <[email protected]>
Related to issue #111