gramene-search 2.1.2 → 2.1.4

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
- 221798770
2
- 1777825123761735000
1
+ 229805076
2
+ 1777900676813858000
package/dist/index.js CHANGED
@@ -6139,9 +6139,6 @@ class $64fad37f770d2bfe$var$Homology extends (0, ($parcel$interopDefault($gXNCa$
6139
6139
  // }
6140
6140
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $5c2c79352d3d7b81$export$47eb42ff093406d4), {
6141
6141
  children: [
6142
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $5c2c79352d3d7b81$export$f99233281efd08a0), {
6143
- children: "Compara Gene Tree"
6144
- }, "title"),
6145
6142
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $5c2c79352d3d7b81$export$393edc798c47379d), {
6146
6143
  children: [
6147
6144
  "This phylogram shows the relationships between this gene and others similar to it, as determined by Ensembl Compara.",
@@ -10171,7 +10168,13 @@ const $0f50f369018a42ef$var$GeneListDisplayComponent = (props)=>{
10171
10168
  dir: 'desc'
10172
10169
  });
10173
10170
  const auth = props.auth;
10174
- 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
+ ]);
10175
10178
  const toggleSort = (key)=>setSort((s)=>s.key === key ? {
10176
10179
  key: key,
10177
10180
  dir: s.dir === 'asc' ? 'desc' : 'asc'
@@ -10556,7 +10559,13 @@ const $0f50f369018a42ef$var$GeneListComponent = (props)=>{
10556
10559
  const [loading, setLoading] = (0, $gXNCa$react.useState)(false); // New loading state
10557
10560
  const [user, setUser] = (0, $gXNCa$react.useState)({});
10558
10561
  const auth = props.auth;
10559
- 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
+ ]);
10560
10569
  // Function to handle gene list input
10561
10570
  const handleGeneListChange = (event)=>{
10562
10571
  setGeneList(event.target.value);