Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
came across this while I was trying to find out why neither .forEach nor for were executing... output in that screenshot of console was literally achieved by: console.log(pulled); console.log(pulled.length);
-
@jespersh you actually might be right, I am storing firebase documents that I am fetching by their document id that I get from ElasticSearch... might have to rethink my approach
edit: I am storing document snapshots to be exact
edit 2: It would actually be easier just to reassign the array than to splice the results in but Vue.js requires that I do it with splice for the changes to be reactive -
oh finally... I worked around the issue because I found out that Vue.js is actually that nice that if you replace an array in a specific way it will stay reactive
Related Rants
I can usually understand why something works in some way but WHAT THE ACTUAL FUCK IS THIS??!!!
rant
length
array
js