Repository navigation
add getter and setter for renderWorldCopies - #5944
Conversation
099c767 to
a1032ee
Compare
mourner
left a comment
There was a problem hiding this comment.
Looks like it failed the Flow checks
|
I think I need some help here! I guess Flow doesn't like that you can call However it's important to have the setter consistant with setting via map initialisation, which is ensured by this PR.
I just added a second commit to make Flow happy but now eslint doesn't like it. Any suggestions on what I can do? |
… constructor while keeping Flow happy
|
I've added another commit which explicitly handles I didn't want to get too bogged down in corner cases like passing null and undefined and would be happy with forcing passing either a |
mollymerp
left a comment
There was a problem hiding this comment.
Sorry for the delay here @andrewharvey ! This looks good to me – thanks for working to appease Flow; it can certainly be tricky sometimes.
Tested the debug page and the docs 👍
Maybe indicate in the docs what happens in the cases of null or undefined ?
I've added this to the documentation and also included test cases for this since it's now documented. |
Closes #4039
Launch Checklist
Adds a getter and setter for renderWorldCopies so it can be changed after map initialisation.
Unit tests confirm the getter and setters are in sync.
JS doc included
I've manually tested flipping renderWorldCopies and it updates the visuals correctly.