Skip to content

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 22, 2019

For reviewers: Commits are atomic. Review should be done on a per-commit basis.

Closes #14628

Summary

  • react-hooks initially reported ✖ 23 problems (9 errors, 14 warnings)
  • fixed in 16 commits of which 6 fixed bugs, 5 were just for the linter, 2 improved perf, 2 false positives and 1 made for cleaner code

4e4ad7f

next vs. PR

Nothing was working at all. Reason were stale closures.

ab8cf71

next vs. PR

Leaky demo:
0. Use hooks version

  1. click button (progress starts)
  2. switch to js version
  3. wait
  4. "Can't perform a React state update on an unmounted component"

Reason were stale closures.

d3bdef7

Linter appeasement in it's current state but the same pattern cause other bugs. Would not consider false positive personally.

c576408

Clear false positive because hooks have a naming convention. Public interface stays the same.

190f8fc

Statement about server performance is misleading. No false positive for me personally because it might be abused.

0f36d32

Caught redundant bailout which was only useful in alpha.

c47fd88

Probably the most complicated diff. No test failed so either we have untested behavior or this is actually a perf improvement (reduces number of window.matchMedia calls to 1 instead of n).

1072aaa

False positive. We need to test this behavior.

b7b897b

Might be a bug in the plugin. I had another instance where it seemed to recognize invariants from the outer scope.

a6737b6

next vs PR
Similar issues to other progress demos

d6fa9d2

Cleaner code

b157068

next vs PR
Fix was a little bit more complicated. SImilar bug to other progress demos

c35ec2a

Not a bug in our docs but if used in other apps can lead to bugs.

49f3eb0

Looks like it fixed #14628 /cc @mbrookes

ffe2a62

Potential bug depending on usage.

6b79818

Needs investigation. False positive for now.For reviewers: Commits are atomic. Review should be done on a per-commit basis.

Closes #14628

Summary

  • react-hooks initially reported ✖ 23 problems (9 errors, 14 warnings)
  • fixed in 16 commits of which 6 fixed bugs, 5 were just for the linter, 2 improved perf, 2 false positives and 1 made for cleaner code

4e4ad7f

next vs. PR

Nothing was working at all. Reason were stale closures.

ab8cf71

next vs. PR

Leaky demo:
0. Use hooks version

  1. click button (progress starts)
  2. switch to js version
  3. wait
  4. "Can't perform a React state update on an unmounted component"

Reason were stale closures.

d3bdef7

Linter appeasement in it's current state but the same pattern cause other bugs. Would not consider false positive personally.

c576408

Clear false positive because hooks have a naming convention. Public interface stays the same.

190f8fc

Statement about server performance is misleading. No false positive for me personally because it might be abused.

0f36d32

Caught redundant bailout which was only useful in alpha.

c47fd88

Probably the most complicated diff. No test failed so either we have untested behavior or this is actually a perf improvement (reduces number of window.matchMedia calls to 1 instead of n).

1072aaa

False positive. We need to test this behavior.

b7b897b

Might be a bug in the plugin. I had another instance where it seemed to recognize invariants from the outer scope.

a6737b6

next vs PR
Similar issues to other progress demos

d6fa9d2

Cleaner code

b157068

next vs PR
Fix was a little bit more complicated. SImilar bug to other progress demos

c35ec2a

Not a bug in our docs but if used in other apps can lead to bugs.

49f3eb0

Looks like it fixed #14628 /cc @mbrookes

ffe2a62

Potential bug depending on usage.

6b79818

Needs investigation. False positive for now.

@eps1lon eps1lon added docs Improvements or additions to the documentation. core labels Feb 22, 2019
@mui-pr-bot
Copy link

Details of bundle changes.

Comparing: 5f55f49...6b79818

bundle parsed diff gzip diff prev parsed current parsed prev gzip current gzip
@material-ui/core/Paper 0.00% 0.00% 83,040 83,040 21,410 21,410
@material-ui/core/Paper.esm 0.00% 0.00% 76,728 76,728 20,462 20,462
@material-ui/core 0.00% +0.01%:small_red_triangle: 484,869 484,877 130,086 130,093
@material-ui/core/styles/createMuiTheme 0.00% 0.00% 16,235 16,235 5,159 5,159
@material-ui/lab 0.00% 0.00% 295,473 295,473 86,174 86,174
@material-ui/styles 0.00% 0.00% 63,755 63,755 18,119 18,119
@material-ui/system 0.00% 0.00% 15,915 15,915 3,938 3,938
colorManipulator 0.00% 0.00% 2,290 2,290 838 838
Button 0.00% 0.00% 212,888 212,888 61,970 61,970
Modal 0.00% +0.01%:small_red_triangle: 211,086 211,094 61,681 61,687
@material-ui/core/Popper 0.00% 0.00% 146,815 146,815 46,826 46,826
@material-ui/core/useMediaQuery -1.80% -1.68% 9,386 9,217 3,563 3,503
docs.main +0.01%:small_red_triangle: +0.01%:small_red_triangle: 676,099 676,139 205,111 205,127
docs.landing 0.00% 0.00% 48,963 48,963 10,275 10,275
packages/material-ui/build/umd/material-ui.production.min.js 0.00% +0.01%:small_red_triangle: 320,503 320,511 84,726 84,731

Generated by 🚫 dangerJS against 6b79818

@eps1lon eps1lon marked this pull request as ready for review February 22, 2019 17:11
@mbrookes mbrookes mentioned this pull request Feb 22, 2019
1 task
@mbrookes
Copy link
Member

Looks like it fixed #14628 /cc @mbrookes

It appears so. 👍

@oliviertassinari oliviertassinari added good first issue Great for first contributions. Enable to learn the contribution process. PR: good for merge and removed good first issue Great for first contributions. Enable to learn the contribution process. labels Feb 22, 2019
@eps1lon eps1lon merged commit ac57a7c into mui:next Feb 23, 2019
@oliviertassinari
Copy link
Member

The table of content doesn't seem to be working correctly after this change. Select an item. The active item won't change when scrolling. I'm looking into it.

@eps1lon eps1lon deleted the core/eslint-plugin-hooks branch March 18, 2019 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] TOC doesn't update correctly; fragment id not removed at top of page

4 participants