Posts by Felipe Evangelista • 67 points
10 posts
-
1
votes1
answer417
viewsQ: Infinite loop with useEffect and useCallback
As code below, I need to call a function whenever inView is true, but using useEffect and useCallback listing the dependencies, I cause an infinite loop. The only ways I could avoid were without…
-
0
votes0
answers60
viewsQ: Group object array according to operation result
I have an array of jobs, each job has an ID and a certain amount of hours to be done. What I have to do is group these works, in groups that do not exceed 8 hours worked. For example, with the…
-
0
votes2
answers529
viewsQ: Compare objects with object array
I will try to be practical. For example, I have the following objects: let a = { 'before': 'small', 'after': 'large', 'type': 'size' } let b = [ { 'before': 'small', 'after': 'large', 'type': 'size'…
javascriptasked Felipe Evangelista 67 -
0
votes1
answer120
viewsQ: Perform functions within an array, after a given index, and another for the others
I will try to be brief in the description. I have, for example, two arrays. One of them has 6 indexes and the other 7. I need to take the first 5 indexes of each array and perform a function, then…
javascriptasked Felipe Evangelista 67 -
1
votes2
answers564
viewsQ: Consume Json Vuejs2 with Axios
I’m trying to popular a list with a JSON, but I’m having problems. I can only make the list by placing Inline in the array, but there is only one item in the list and I cannot make it populated with…
-
1
votes0
answers31
viewsQ: Divs aligned with different Height
I need to make this effect of the Divs being different sizes, but always 'embedded', but I’m not getting away with it. I’m using Materialize, there’s some 'trick' to it? I don’t know if it makes it…
-
1
votes2
answers105
viewsQ: Dynamic height in 'product cart'
I have a div which serves as a shopping cart, it is fixed at the top of the screen where only the subtotal of all products chosen and by clicking on the div, she makes a slide down effect and shows…
-
0
votes2
answers139
viewsQ: Form Validation
Well, I have a form that is validated if the inputs are empty, until then ok, does the validation in the if of all inputs correctly, but with the inputs completed, does not send in Else. Where I…
-
1
votes1
answer168
viewsQ: Close Form Dynamically jQuery
The form is a registration form for a cat hotel. The form has the option to add more than one cat per registration, so I clone the cat’s registration form to include the second cat, but I can’t get…
-
0
votes0
answers1012
viewsQ: Sending Email Using Jquery Ajax without Refresh
I’m having problems trying to use this method of sending form by email, without refreshing the page. I don’t have much knowledge of Ajax yet, so I’m not sure if the code is correct, I even tried…