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

fix(createServerRootMixin): forward i18n on option #5673

Merged
merged 6 commits into from
Jun 13, 2023

Conversation

mrzdevcore
Copy link
Contributor

Issue during SSR, i18n is not defined inside the cloned component instance

This fix solve the issue by adding $i18n in the options of the cloned component.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 12, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 363fa2f:

Sandbox Source
InstantSearch.js Configuration
react-instantsearch-app Configuration
example-react-instantsearch-hooks-default-theme Configuration
example-vue-instantsearch-default-theme Configuration

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put this after line#33 in that same file? there are other properties copied in a similar way.

A test would also be very useful!

@Haroenv
Copy link
Contributor

Haroenv commented Jun 12, 2023

Thanks for your PR, this will be useful :)

@mrzdevcore
Copy link
Contributor Author

@Haroenv I have added for i18n for both vue3 and vue2.

@mrzdevcore mrzdevcore requested a review from Haroenv June 13, 2023 09:07
Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks correct! I'll just make sure CI runs

@Haroenv Haroenv changed the title fix(createServerRootMixin): add i18n on option fix(createServerRootMixin): forward i18n on option Jun 13, 2023
@Haroenv Haroenv merged commit d52b47f into algolia:master Jun 13, 2023
@Haroenv Haroenv mentioned this pull request Jun 13, 2023
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