Skip to content
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

Mitigate ordering dependency between Facets and SearchBar #401

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

data-enabler
Copy link
Contributor

Facet retrieval isn't enabled until the Facets component is mounted and
initial search happens when the the SearchBar component is mounted,
creating an ordering dependency between the two components, if one
wishes for facets to be present for an initial search.

The location permissions check in
4afecdd mitigates this issue by
performing the search asynchronously; this commit makes the code path
also asynchronous in browsers that don't support the permissions API.

Fixes #369

Facet retrieval isn't enabled until the Facets component is mounted and
initial search happens when the the SearchBar component is mounted,
creating an ordering dependency between the two components, if one
wishes for facets to be present for an initial search.

The location permissions check in
4afecdd mitigates this issue by
performing the search asynchronously; this commit makes the code path
also asynchronous in browsers that don't support the permissions API.
@data-enabler data-enabler requested a review from Delerme December 6, 2019 18:52
@data-enabler data-enabler merged commit 6c9b20d into v0.10.1 Dec 6, 2019
@data-enabler data-enabler deleted the facets-quick-fix branch December 6, 2019 18:56
vramesh1 pushed a commit that referenced this pull request Dec 14, 2019
Facet retrieval isn't enabled until the Facets component is mounted and
initial search happens when the the SearchBar component is mounted,
creating an ordering dependency between the two components, if one
wishes for facets to be present for an initial search.

The location permissions check in
4afecdd mitigates this issue by
performing the search asynchronously; this commit makes the code path
also asynchronous in browsers that don't support the permissions API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants