Skip to main content

All Questions

Tagged with
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 ...
Andrew Richardson's user avatar
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 ...
WiikoiTek's user avatar
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" ...
Suriya Rajasekar's user avatar
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((...
CypressDog's user avatar
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 ...
Justin's user avatar
  • 1
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 ...
Chong Lip Phang's user avatar
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); ...
Brinax's user avatar
  • 36
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: "...
abinas patra's user avatar
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&...
Nadia  Medvid's user avatar
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(...
fefe's user avatar
  • 8,985
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 ...
dylanb15's user avatar
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 ...
Minh Huy's user avatar
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 ...
wololoo's user avatar
  • 175
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: ...
Moustafa Elbeda's user avatar
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 ...
Johnn's user avatar
  • 57

15 30 50 per page
1
2 3 4 5
10