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

Replaced object-hash with hash-sum to hopefully get a more determinis… #1

Merged

Conversation

JakeGinnivan
Copy link
Contributor

…tic hash

@JakeGinnivan JakeGinnivan requested a review from mandymichael May 27, 2019 13:32
@JakeGinnivan JakeGinnivan force-pushed the change-object-hashing branch from a066cf4 to c83b4e0 Compare May 27, 2019 13:33
@@ -35,7 +35,7 @@ Object {
},
Object {
"state": Object {
"fc7e58063ef49874aea8e2210fc7a6a2f9836f52": Object {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is basically the issue, this hash should be the same on client and server, and it is for all browsers except IE11. This new library is far simpler, smaller and hopefully faster.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will be interested to see if this fixes some of the random issues we've had in IE11 between the SSR and client side render.


export interface Props {
initialState?: DataLoaderState
onEvent?: (event: DataProviderEvents) => void | Promise<any>
isServerSideRender?: boolean
resources: DataLoaderResources<any>
globalProps?: object
/** Override the object hasing function */
Copy link

Choose a reason for hiding this comment

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

hashing

@JakeGinnivan JakeGinnivan merged commit ad74b93 into sevenwestmedia:master May 28, 2019
@JakeGinnivan JakeGinnivan deleted the change-object-hashing branch May 28, 2019 02:26
@JakeGinnivan
Copy link
Contributor Author

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants