iobio / gene.iobio

Gene.iobio vue
MIT License
55 stars 11 forks source link

Pass selectedTranscript to Viz #983 #984

Closed emersonlebleu closed 10 months ago

emersonlebleu commented 10 months ago

Passed the "selectedTranscript" to the viz so that we can conditionally render the classes based on if there is a selected transcript or not if not select MANE.

It seems that 'transcriptSelected' is emitted up the tree transcriptsMenu->transcriptCart->geneHome where it is used to then update the state of other components. Something about this causes the geneViz to re-render and call that 'transcriptClass' function that we looked at.

Passing the selectedTranscript an additional level down to the geneViz & adding some conditional logic in that function that uses the selectedTranscript if it is present seems to get this working like we would expect.