GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
841 stars 106 forks source link

fix(monitor/submission): wrong dependence for useEffect #321

Closed kengwang closed 1 month ago

kengwang commented 1 month ago

Motivation

The Notification will pop-up when recieved a new event

Root Cause

Wrong monitor for React variable trigger the useEffect method, then re-run the connect methods.

Fix

Pass monitoring variables to React.

Co-Authored-By: @GZTimeWalker