You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Implementation:
The current API AotF Playground feature is built-in each specific entity associations page (Target - Disease), this makes difficult to keep consistency between both components and is a scalability blocker. It may generate unnecessary re-renders because of the call of the useAotfContext hook in a high-level component.
Expected Implementation:
A component ( <AotfApiPlayground /> ) that takes advantage of the useAoffContex hook consuming the query and building the variables parameter of the APIPlayGround component in its context.
This will facilitate the Disease/Target Associations page to be written in a clearer way:
/* DISEASE ASSOCIATION */functionDiseaseAssociations({ efoId }){return(<AssociationsProviderid={efoId}entity={ENTITIES.DISEASE}query={DISEASE_ASSOCIATIONS_QUERY}><ControlsSection><Boxsx={{display: "flex",flexWrap: "wrap"}}><SearhInput/><OptionsControlls><AdvanceOptionsMenu/><PrivateWrapper><DataUploader/></PrivateWrapper><Dividerorientation="vertical"/><DataDownloaderfileStem={`OT-${efoId}-associated-targets`}/>{/* This is the component to be created */}<AotfApiPlayground/></OptionsControlls></Box><Box><TargetPrioritisationSwitch/></Box></ControlsSection><TableAssociations/></AssociationsProvider>);}
The text was updated successfully, but these errors were encountered:
carcruz
changed the title
Improvements in AotF GraphQL Play ground
Improvements in the AotF GQL Playground Component
Apr 18, 2024
Current Implementation:
The current API AotF Playground feature is built-in each specific entity associations page (Target - Disease), this makes difficult to keep consistency between both components and is a scalability blocker. It may generate unnecessary re-renders because of the call of the
useAotfContext
hook in a high-level component.Expected Implementation:
A component (
<AotfApiPlayground />
) that takes advantage of theuseAoffContex
hook consuming the query and building the variables parameter of the APIPlayGround component in its context.This will facilitate the Disease/Target Associations page to be written in a clearer way:
The text was updated successfully, but these errors were encountered: