-
Notifications
You must be signed in to change notification settings - Fork 1
Fixing order of type checking and value reassignment #1
Conversation
| node_modules | ||
| npm-debug.log | ||
| .DS_Store | ||
| lib |
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.
Removed the lib from gitignore. There are build issues when trying to pull this into the FE repo . The lib isn't being properly built when being included in the FE, so including the lib here is a quick fix for this issue.
| @@ -1,3 +1,5 @@ | |||
| // @noflow | |||
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.
Flow tests for this file were failing, even on master of the fork 😕
This addition stops flow (a typing library) from trying to type this library.
| val = val[val.length === 2 ? 1 : 0]; | ||
| } | ||
|
|
||
| const type = getType(val); |
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 is the change needed to (hopefully) fully fix the issue with the FE.
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.
LGTM! @hoffmanktz, this is ready for QA!
|
Not throwing any errors in the console and everything is working as expected. LGTM! |
Description
This is a PR to fix an issue we are seeing on the MetricsOne frontend.
This issue is currently up in a PR to be fixed on the
redux-devtools-inspectorrepo. However, it has been up since May, and there is no resolution in sight.There is also an issue up for the original repo.
Testing Steps
In order to test this, you will need to pull this branch on
redux-devtools-inspectorinto your FE.yarn remove redux-devtools-inspector.yarn add github:detroit-labs/redux-devtools-inspector#LNG-2305-Fixing-typechecking-order-issueOnce this PR is approved and merged in, I will put up a corresponding FE PR.