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

fix(translatable): avoid create a new function on every render #1383

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

samouss
Copy link
Collaborator

@samouss samouss commented Jun 25, 2018

Summary

The translatable HoC create a new function for the translate prop on each render. This PR create an instance property to avoid to create a new function each time.

@samouss samouss requested review from vvo and Haroenv June 25, 2018 08:58
@algobot
Copy link
Contributor

algobot commented Jun 25, 2018

Deploy preview for react-instantsearch ready!

Built with commit 8dd9aa5

https://deploy-preview-1383--react-instantsearch.netlify.com

@samouss samouss merged commit 1285b3b into master Jun 25, 2018
@samouss samouss deleted the fix/translatable-provided-props branch June 25, 2018 09:17
samouss added a commit that referenced this pull request Jul 4, 2018
<a name="5.2.0"></a>
# [5.2.0](v5.2.0-beta.2...v5.2.0) (2018-07-04)

### Bug Fixes

* **translatable:** avoid create a new function on every render ([#1383](#1383)) ([1285b3b](1285b3b))

### Features

* **core:** export translatable ([#1351](#1351)) ([6d5a89d](6d5a89d))
* **maps:** add connector & widget ([#1171](#1171)) ([16e288a](16e288a)), closes [#1189](#1189) [#1192](#1192) [#1201](#1201) [#1205](#1205) [#1207](#1207) [#1214](#1214) [#1227](#1227) [#1236](#1236) [#1289](#1289)
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.

3 participants