gramene-search 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 229445353
2
- 1777869897628661000
1
+ 229825460
2
+ 1777900827838483000
package/dist/index.js CHANGED
@@ -10168,7 +10168,13 @@ const $0f50f369018a42ef$var$GeneListDisplayComponent = (props)=>{
10168
10168
  dir: 'desc'
10169
10169
  });
10170
10170
  const auth = props.auth;
10171
- if (auth) (0, $gXNCa$firebaseauth.onAuthStateChanged)(auth, (user)=>setUser(user));
10171
+ (0, $gXNCa$react.useEffect)(()=>{
10172
+ if (!auth) return;
10173
+ const unsubscribe = (0, $gXNCa$firebaseauth.onAuthStateChanged)(auth, (u)=>setUser(u));
10174
+ return ()=>unsubscribe();
10175
+ }, [
10176
+ auth
10177
+ ]);
10172
10178
  const toggleSort = (key)=>setSort((s)=>s.key === key ? {
10173
10179
  key: key,
10174
10180
  dir: s.dir === 'asc' ? 'desc' : 'asc'
@@ -10553,7 +10559,13 @@ const $0f50f369018a42ef$var$GeneListComponent = (props)=>{
10553
10559
  const [loading, setLoading] = (0, $gXNCa$react.useState)(false); // New loading state
10554
10560
  const [user, setUser] = (0, $gXNCa$react.useState)({});
10555
10561
  const auth = props.auth;
10556
- if (auth) (0, $gXNCa$firebaseauth.onAuthStateChanged)(auth, (user)=>setUser(user));
10562
+ (0, $gXNCa$react.useEffect)(()=>{
10563
+ if (!auth) return;
10564
+ const unsubscribe = (0, $gXNCa$firebaseauth.onAuthStateChanged)(auth, (u)=>setUser(u));
10565
+ return ()=>unsubscribe();
10566
+ }, [
10567
+ auth
10568
+ ]);
10557
10569
  // Function to handle gene list input
10558
10570
  const handleGeneListChange = (event)=>{
10559
10571
  setGeneList(event.target.value);