You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by su...@apache.org on 2021/02/18 10:59:41 UTC

[superset] branch api-resource-hooks updated: comment

This is an automated email from the ASF dual-hosted git repository.

suddjian pushed a commit to branch api-resource-hooks
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/api-resource-hooks by this push:
     new bdb1193  comment
bdb1193 is described below

commit bdb1193ea21c7c5a430d3e84a97400e056420397
Author: David Aaron Suddjian <aa...@gmail.com>
AuthorDate: Thu Feb 18 02:58:24 2021 -0800

    comment
---
 superset-frontend/src/common/hooks/apiResources.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/common/hooks/apiResources.ts b/superset-frontend/src/common/hooks/apiResources.ts
index 5ae54a7..e990509 100644
--- a/superset-frontend/src/common/hooks/apiResources.ts
+++ b/superset-frontend/src/common/hooks/apiResources.ts
@@ -92,7 +92,7 @@ export function useApiResourceFullBody<RESULT>(
 
   useEffect(() => {
     // If refresh is implemented, this will need to change.
-    // The state will need to keep
+    // The previous values should stay during refresh.
     setResource(initialState);
 
     // when this effect runs, the endpoint function has changed.