A
A
Arthur Grand2020-07-04 05:42:18
React
Arthur Grand, 2020-07-04 05:42:18

How to change state without rerender?

There is a functional component that takes an array of data and has a state - pageNum, to show part of that array.

How can I reset pageNum to 1 when transferring new data?

Right now I'm using useEffect with an array dependency, but it makes it render one extra time due to the pageNum state change.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aush, 2014-11-04
@ProKiLL

dev.mysql.com/downloads/installer
Working with MySQL database in C# ( video ).

B
Boris Benkovsky, 2014-11-04
@benbor

lmgtfy.com/?q=c%23+connect+to+mysql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question