Baoyuantop commented on code in PR #2506:
URL: https://github.com/apache/apisix-dashboard/pull/2506#discussion_r921730490


##########
web/src/components/Plugin/PluginPage.tsx:
##########
@@ -87,6 +86,10 @@ const PluginPage: React.FC<Props> = ({
       });
       setTypeList(categoryList);
     });
+  }, [initialData, referPage]);
+
+  useEffect(() => {
+    setPlugins(initialData);

Review Comment:
   Why not just use initialData as the initial value of plugins state?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to