Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix(ssr): clearer error message when using ssr without the component #698

Merged
merged 4 commits into from
Jul 22, 2019

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jul 22, 2019

fixes #697

We are patching the InstantSearch instance in SSR, but you could be using the code for SSR without using the patched InstantSearch instance.

The error being thrown then is confusing, since it just complains about a missing property.

We have no differential error management with short & long error messages in prod/dev here yet, so I tried to be between both (not too long), this still has a .03kb difference in the bundle, so I updated the limits

Haroenv added 2 commits July 22, 2019 15:30
fixes #697

We are patching the InstantSearch instance in SSR, but you could be using the code for SSR without using the patched InstantSearch instance.

The error being thrown then is confusing, since it just complains about a missing property.

We have no differential error management with short & long error messages in prod/dev here yet, so I tried to be between both (not too long)
@Haroenv Haroenv requested a review from a team July 22, 2019 13:34
@ghost ghost requested review from francoischalifour and yannickcr and removed request for a team July 22, 2019 13:34
@Haroenv Haroenv merged commit 20c2153 into master Jul 22, 2019
@Haroenv Haroenv deleted the fix/ssr-error-message branch July 22, 2019 14:13
Haroenv added a commit to algolia/instantsearch that referenced this pull request Dec 28, 2022
…lgolia/vue-instantsearch#698)

fixes algolia/vue-instantsearch#697

We are patching the InstantSearch instance in SSR, but you could be using the code for SSR without using the patched InstantSearch instance.

The error being thrown then is confusing, since it just complains about a missing property.

We have no differential error management with short & long error messages in prod/dev here yet, so I tried to be between both (not too long)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

this.instantSearchInstance.__forceRender is not a function using Nuxt
3 participants