Skip to content

Direction flag removal - #91

Merged
trueadm merged 2 commits into
mainfrom
direction-removal
Feb 12, 2021
Merged

trueadm merged 2 commits into
mainfrom
direction-removal

Conversation

@trueadm

@trueadm trueadm commented Feb 12, 2021 •

Copy link
Copy Markdown
Collaborator

The HAS_DIRECTION flag is a bit convoluted. We use it on every node, but really, we only care about when we don't want to apply direction and this is only true for certain blocks (because they can have children). So instead of messing around with flags, we can instead use a childrenNeedDirection() method on blocks that allows them to define how their own direction should work.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 12, 2021
@trueadm
trueadm merged commit f336bb6 into main Feb 12, 2021
@trueadm
trueadm deleted the direction-removal branch February 12, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants