Skip to content
Discussion options

You must be logged in to vote

yes, tearing down and recreating the "view state" will be slow. in my examples that I showed above use a useState to only run createViewState once to initialize the "view state", and thenafter, calling the navToLocString to move around. this should be pretty fast.

if you are aiming to re-navigate to a specific genomic region, I recommend using the navToLocString function. manually fiddling with the bpPerPx and displayedRegions is generally a bit low level, when navToLocString automatically adjusts those variables as needed, but welcome to use whatever works :)

lemme know if you have any other issues

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cmdcolin
Comment options

@daviddamilola
Comment options

@cmdcolin
Comment options

Answer selected by daviddamilola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants