dieterich-lab / scimodom

GNU Affero General Public License v3.0
0 stars 0 forks source link

Passing props to CompareStep #65

Closed eboileau closed 1 month ago

eboileau commented 6 months ago

Aims/objectives.

Because props are passed down to CompareStep components, which may be undefined when the child component is mounted, we have to somehow handle this. This is purely a timing issue. I'm using something like

<CompareStepII v-if="selectOptions && selectDataset && selectedSpecies && selectedRefDataset"/>

doesn't seem like the best way to handle this. There are too many options, I don't know what is best, besides I haven't managed to make all of them work e.g. async (in combination with Suspense, which is currently still an experimental feature), async components, etc. Maybe something like <child-component @vnodeMounted="doSomething" /> would work? There are many resources, but none is definitely useful... check also Better support for top-level await in Githubissues.

  • Githubissues is a development platform for aggregating issues.