A free and open-source inpainting & image-upscaling tool powered by webgpu and wasm on the browser。| 基于 Webgpu 技术和 wasm 技术的免费开源 inpainting & image-upscaling 工具, 纯浏览器端实现。
Cause react setState won't change the state immediately,the old progress timmer state won't clear correctly,and the setGenerateProgress function will execute forever.It's no need to use state varible,all we need is a constant variable to save the progress interval timer.
Cause react setState won't change the state immediately,the old progress timmer state won't clear correctly,and the
![微信截图_20231124180232](https://github.com/lxfater/inpaint-web/assets/3118553/720c6d73-f5d1-4b4e-becf-06097c9b86df)
setGenerateProgress
function will execute forever.It's no need to use state varible,all we need is a constant variable to save the progress interval timer.