Skip to content

Commit

Permalink
[Platform]: Use dependency in batching to force widget rerender (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmcn authored Dec 10, 2024
1 parent ea62e69 commit d786a19
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/sections/src/credibleSet/GWASColoc/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function Body({ studyLocusId, entity }: BodyProps): ReactElement {
getData().then(r => {
setRequest(r);
});
}, []);
}, [studyLocusId]);

return (
<SectionItem
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/credibleSet/MolQTLColoc/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function Body({ studyLocusId, entity }: BodyProps) {
getData().then(r => {
setRequest(r);
});
}, []);
}, [studyLocusId]);

return (
<SectionItem
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/credibleSet/Variants/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function Body({
getData().then(r => {
setRequest(r);
});
}, []);
}, [studyLocusId]);

const columns = getColumns({
leadVariantId,
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/disease/GWASStudies/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function Body({ id: efoId, label: diseaseName }: BodyProps): ReactElement {
getData().then(r => {
setRequest(r);
});
}, []);
}, [efoId]);

return (
<SectionItem
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/study/GWASCredibleSets/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function Body({ id, entity }: BodyProps): ReactElement {
getData().then(r => {
setRequest(r);
});
}, []);
}, [id]);

return (
<SectionItem
Expand Down
6 changes: 3 additions & 3 deletions packages/sections/src/study/SharedTraitStudies/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function getColumns(diseaseIds: string[]) {
getStudyCategory(projectId) === "FINNGEN"
? "FinnGen"
: cohorts?.length
? cohorts.join(", ")
: null,
? cohorts.join(", ")
: null,
},
{
id: "publication",
Expand Down Expand Up @@ -139,7 +139,7 @@ export function Body({ studyId, diseaseIds }: BodyProps): ReactElement {
getData().then(r => {
setRequest(r);
});
}, []);
}, [studyId]);

const columns = getColumns(diseaseIds);

Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/variant/GWASCredibleSets/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function Body({ id, entity }: BodyProps) {
getAllGwasData().then(r => {
setRequest(r);
});
}, []);
}, [id]);

return (
<SectionItem
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/variant/QTLCredibleSets/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function Body({ id, entity }: BodyProps): ReactNode {
getAllQtlData().then(r => {
setRequest(r);
});
}, []);
}, [id]);

return (
<SectionItem
Expand Down

0 comments on commit d786a19

Please sign in to comment.