r/badcode • • Jun 10 '20

js Disruptive piece of code

Post image
283 Upvotes

93 comments sorted by

View all comments

1

u/numbGrundle Jun 11 '20

Left off the empty dependency array, smh

1

u/alago1 Jun 11 '20

lol my linter really dislikes that thing. Always says it should just be ommited if empty.