What is it supposed to do
Fixes an issue with sub-comments on comments multiplying when there are 2 or more comments. Was caused by wrong state management in the loading function.
How can we test your branch
[ ] Go to a post while logged in
[ ] Place two comments
[ ] Comment on one of the comments
[ ] The comment should state that there is 1 sub-comment, instead of 2 or more
Additional notes
This branch does not solve the remaining issue with comments not unfolding anymore (since the re-render is still forced by resetting the state).
1. General checklist
[x] a. Tested happy flow.
[x] b. Tested unhappy flow.
[x] c. No unexpected exceptions.
[x] d. No code with high complexity. (Big O)
[x] e. EOF newline.
[x] f. No linter warnings or errors.
2. If relevant, front-end checklist
[x] a. Responsive. (Desktop all the way to mobile 320px)
[x] b. Using SCSS variables where relevant.
[x] c. Relevant class names
[x] d. No modified global SCSS properties, except if necessary and fully tested the impact.
[x] e. Checked caniuse for more modern CSS properties.
closes #377
What is it supposed to do
Fixes an issue with sub-comments on comments multiplying when there are 2 or more comments. Was caused by wrong state management in the loading function.
How can we test your branch
Additional notes
This branch does not solve the remaining issue with comments not unfolding anymore (since the re-render is still forced by resetting the state).
1. General checklist
2. If relevant, front-end checklist
4. If relevant, test these browsers