Skip to content

refactor(CellMixin): simplify isCell*able methods#571

Merged
tbouffard merged 6 commits intomainfrom
refactor/CellMixin_simplify_style_computation
Nov 14, 2024
Merged

refactor(CellMixin): simplify isCell*able methods#571
tbouffard merged 6 commits intomainfrom
refactor/CellMixin_simplify_style_computation

Conversation

@tbouffard
Copy link
Member

Only call getCurrentCellStyle when other criteria match (avoid extra call) and inline the style constant.
Test all modified methods: the tests were written prior the refactoring to ensure that the original
behavior remains the same.

Only call `getCurrentCellStyle` when other criteria match (avoid extra call) and inline the style constant.
Test all modified methods: the tests were written prior the refactoring to ensure that the original
behavior remains the same.
This better tests the implementation and simplify the syntax.
@tbouffard tbouffard added the refactor Code refactoring label Nov 13, 2024
@tbouffard tbouffard changed the title refactor/CellMixin_simplify_style_computation refactor(CellMixin): simplify implementation of isCell***able methods Nov 13, 2024
@tbouffard tbouffard changed the title refactor(CellMixin): simplify implementation of isCell***able methods refactor(CellMixin): simplify implementation of isCell*able methods Nov 13, 2024
@tbouffard tbouffard changed the title refactor(CellMixin): simplify implementation of isCell*able methods refactor(CellMixin): simplify isCell*able methods Nov 13, 2024
@tbouffard tbouffard marked this pull request as ready for review November 14, 2024 08:15
@tbouffard tbouffard merged commit 0a4dc18 into main Nov 14, 2024
@tbouffard tbouffard deleted the refactor/CellMixin_simplify_style_computation branch November 14, 2024 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant