Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(Provider): staticStyles should be executed with the merged siteVariables #559

Merged
merged 7 commits into from
Dec 5, 2018

Conversation

mnajdova
Copy link
Contributor

@mnajdova mnajdova commented Dec 5, 2018

This PR aims to fix #526

Note

Important thing to note is that, per one Provider we will execute the staticStyles only once, when they are the first time applied.

super(props)
this.staticStylesRendered = false
}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
staticStylesRendered: boolean = false

You can set a value without constructor, or I am missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I will remove the constructor. I was trying different things, it is just leftover.

manajdov added 2 commits December 5, 2018 15:46
…rovider

-added test for ensuring that staticStyles are invoked with the merged siteVariables
@kuzhelov kuzhelov merged commit 5d20026 into master Dec 5, 2018
@layershifter layershifter deleted the fix/static-styles-site-var-param branch January 10, 2019 11:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function to resolve static styles gets incomplete site variables
5 participants