Timer, delay page disappears

Mar.11,2021

judgment condition


setState there is a process to change the value of a variable, which is not performed by Synchronize. Just the number of seconds of a timer, there is no need to put it in the state. Or you can cache the number of seconds (that is, how many seconds it takes) in componentDidMount and modify it directly based on this cache variable. For example,

let {countDown} = this.state;

//...
-countDown;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54988-43875.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54988-43875.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?