All Questions
Tagged with updates javascript
137
questions
0
votes
2
answers
659
views
How does having " ?${new Date().getTime()} " updates the image in JS
I watched a tutorial where they showed that appending ?${new Date().getTime()}to the value of src attribute in the image tag, updates the current image with the new image.
I came across this question,...
2
votes
1
answer
2k
views
Converting StackNavigator from v4 to v5 React Native error for auth
My goal is to convert React-Native stack navigator from version 4-5. I've been running into some challenges and any help would be deeply appreciated.
ERROR: "The action 'NAVIGATE' with payload {"name"...
0
votes
0
answers
68
views
Migration to material ui v.4 x x problem with css
i have a difficult task of migrating the material ui version from 0.20 to 4.9.0 (the latest). I've changed all the imports and changes of components but i have a MAJOR problem with the css. We use a ...
0
votes
2
answers
140
views
Error getting document: clientDetails Error: Cannot modify a WriteBatch that has been committed
What is the reason I am getting this error within a Firestore batch update? The promise is returned as a batch commit and the batches are created inside a loop. I could not get my head around this ...
7
votes
0
answers
4k
views
Are there incompatibility risks when updating Node.js?
I was just checking if any installed programs required an update and I realized that the latest LTS version of Node.js is 12.13.1 while I have 10.16.0 installed.
I was wondering if there are ...
1
vote
1
answer
3k
views
how do I fix this problem I'm having with findOneAndUpdate
Trying to update mongodb doc using findOneAndUpdate method
tried looking up the doc in various ways and reformating the update in different ways
router.put(
"/edit",
[
auth,
[
...
0
votes
2
answers
2k
views
Redux Reducer: Update object in array by key immutably
Question: Update the object in devData array with key = 1 this way: -> update data and dateTime
//Redux state:
{
info: {
success: true,
devData: [
{
...
2
votes
1
answer
1k
views
PWA update service worker when app is already loaded
I'm building a PWA and I'm looking for a way to update a service worker when the app is already open and loaded.
For example the user opens the app once on his phone and then switches through other ...
1
vote
2
answers
60
views
Updating elements of a multidimensional array
I'm seeking to update a team results array below. The football score will populate positions 1 and 2 of each inner array.
var teamResults=[
["Home","F","A","Away"],
["A",,,"B"],
["A",,,"C"],
...
0
votes
1
answer
1k
views
JS (template Literal-) generated html, updates the DOM? [duplicate]
When generating HTML with JavaScript, is it better to use the annoyingly verbose
document.createElement("p")...
(as seen here: https://www.w3schools.com/jsref/met_document_createelement.asp )
or is ...
1
vote
1
answer
33
views
Using Javascript arrray in mongodb update query with $in
I am trying to update all documents in my collection which have fields containing any one of the values in my javascript array. I keep getting a '$in needs an array' error. I do not understand how to ...
1
vote
1
answer
1k
views
How to update React Google Map after receive data from server
How to update ReactGoogleMap after receiving data from the server?
This is how I create Google Map using react-google-maps API.
import React from "react"
import { compose, withProps } from "...
7
votes
2
answers
962
views
D3 V4: Updated data is being seen as new data? (Update function)
Currently, I am building a system, and I am having some trouble with the update function.
Essentially, I am trying to add new nodes to a D3 tree. A new child node can be added when the user clicks ...
0
votes
1
answer
151
views
alternative way to change hovered series and its points properties in a HighCharts chart
I have a line chart with a lot of series and I need to change the color of the hovered series and all its points.
A suggested approach is to use mouseOver and mouseOut events, and inside them run a ....
1
vote
0
answers
94
views
three js update tubegeometry not visible r100
I have a function that generates new tube each frame following the movement of a mesh. The function that does the updating of the tubegeometry looks like the following:
function UpdateKettingMeshes(...