-
Notifications
You must be signed in to change notification settings - Fork 2
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
UISAUTCOMP-135: useAutoOpenDetailView
- block auto-open on mount if record id exists in URL.
#178
Conversation
…ecord id exists in URL.
598e494
to
7a24b8b
Compare
This comment has been minimized.
This comment has been minimized.
@@ -49,6 +49,66 @@ describe('useAutoOpenDetailView hook', () => { | |||
}); | |||
|
|||
describe('when there is a record ID in URL', () => { | |||
describe('and it is mount (page reload or redirection from quick marc)', () => { | |||
it('should not open record`s detail view', async () => { |
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.
does this function require asynchronous operations?
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.
Looks like no, I'll remove it
Quality Gate passedIssues Measures |
Purpose
If there is an open record and the next search returns a single record, it is automatically opened in the third pane.
Approach
Currently: Block auto-opening of record if id is present in URL.
After this PR is merged: Block auto-opening of record if id is present in URL only on mount.
TODOS and Open Questions
Learning
Screenshots
2024-12-13_18h51_33.mp4