All Questions
Tagged with updates javascript
137
questions
0
votes
0
answers
40
views
DOM update incomplete in D3 when used with React
I have a problem updating the DOM elements in D3 in a React Component.
I have a component which gets data from a Slider in the main App.
The slider filters the data, removing or adding elements. When ...
1
vote
0
answers
26
views
I can't add a new Row to an inline crud table once i get live data
I am trying to create an inline create and edit function on a table in angular, when i click on 'add', a new row with empty input fields is supposed to be created. works well on mock data but wont ...
0
votes
2
answers
1k
views
Angular7 Ng-Multiselect-dropdown Its Adding Dynamically but not updating
<ng-multiselect-dropdown
[settings]="settings"
name="cuisine"
[placeholder]="'select '"
[(ngModel)]="data1"
...
0
votes
1
answer
293
views
How to update angular component variable in 'then'
I would like to wait till angComponent.gridApi does not have the value undefined.
I'm not sure, but I think the variable angComponent doesn't update.
cy.getAngularComponent(tableGrid).then((...
0
votes
0
answers
391
views
Attempted import error: 'CardAction' is not exported from '@material-ui/core'
I'm working on a react app and I'm trying to import CardAction from @material-ui but then:
Attempted import error: 'CardAction' is not exported from '@material-ui/core'.
So obviously I went to ...
3
votes
6
answers
2k
views
When to use functional update form of useState() hook, eg. setX(x=>x+1)
Normally when we need to update a state in a functional component, we do something like this:
function Example() {
const [count, setCount] = React.useState(0);
return (<div><p>You ...
0
votes
3
answers
210
views
javascript setTimeout in a while loop [duplicate]
Hello i want to have 4 timeOuts to update balls positions because the balls don't go at the same speed.
here's a part of my code:
var i=1;
while(i<=5)
{
console.log(i);
...
2
votes
1
answer
479
views
UpdateMany document with array of objects in mongodb
I have a mongodb collection which looks like this
[
{
pId: "p1",
apikey: "a2",
count: 0
},
{
pId: "p2",
apikey: "...
0
votes
1
answer
29
views
when i push the button again the information will be updated not added
How to change my code, when I push the button again the information is adding to previous, I need that when I push the button the information updates.
document.querySelector(".city-select&...
1
vote
3
answers
198
views
Modify object value in array inside map
Trying to modify object value in array on condition on some arrays the override does not work, here is my snippet
const removeAction = (target, array, name) => {
let mutation = JSON.parse(...
0
votes
1
answer
36
views
problems to update mongodb collection
so I have two different collections for my social media app. One for the users and the other one for the user's posts. Whenever I'm updating the info from one of my user's collection it should also ...
2
votes
3
answers
2k
views
TextInput in FlatList Item
I have a problem like picture below:
Text
As you guy can see I have info on every item: name and stock. Now I want to update stock on single item by type a number to text Input But when I type 3 into ...
3
votes
2
answers
4k
views
How to update an IndexedDB item with autoincrement key? [duplicate]
I created an object store with autoIncrement: db.createObjectStore("items", {autoIncrement:true});
Now I want to be able to update an item given its key and a new value, so I wrote this ...
0
votes
1
answer
81
views
Disable and enable note field depends on note field value null or not
$(document).on('click', '.update', function() {
var user_id = $(this).attr("id");
$.ajax({
url: "fetch_single.php",
method: "POST",
data: {
user_id: ...
0
votes
1
answer
682
views
Mongoose adding product to Cart products array
I've been trying to figure out how to push new product to existing cart which I have in my database.
updateOne is searching for a a cart with claimed userId and then ties to insert new product into ...