-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/persist browsing data #74
Conversation
…tional-bio/bakrep-web into feature/persist-browsing-data
I get warnings when I use the browse page |
-> Does not go back to first page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments that may be worth discussiong/thinking about
src/views/BrowseView.vue
Outdated
}); | ||
} | ||
|
||
function decodeQuery() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is named decode, but actually it decodes and replaces the components state. Is there a better name you can use for this behavior?
src/views/BrowseView.vue
Outdated
watch( | ||
() => route.query, | ||
() => { | ||
populateVariables(); | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required when passing the query via props?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, without it the query values are not properly added to the references, i've tried computed references and those didn't seem to work either, if you know a better way, please let me know!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, can you add a comment to this block? It should explain why this is done here.
…tional-bio/bakrep-web into feature/persist-browsing-data
…o feature/persist-browsing-data
This error is still there |
…function to updateUrl
… the url immediately
Save filter values in an reactive object instead of single reactive variables Replace `quality` with `completeness` Add comments where it is not clear why something happens Reduce parameters for route-query watcher
Hopefully this improve readability
closes #73