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

Ensure makeSymbol does not change currentPage #353

Merged
merged 1 commit into from
Jun 10, 2018

Conversation

jaridmargolin
Copy link
Collaborator

This is a quick patch to fix #351

Hopefully for a v3 release we can get around all of this hoopla by providing a more natural interface as explained in #316 (comment)

@@ -44,8 +44,10 @@ const getExistingSymbols = (document: any) => {

let symbolsPage = getSymbolsPage(document);
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC, there is a document.getOrCreateSymbolPage() method used somewhere else already. We probably want to use that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did see it used, but wasn't sure if its implementation was exactly the same as what was happening here.

I kicked the can down the road, because I wasn't entirely sure how long we would be keeping this current Symbols API.

The next thing up on my list is investigating how to control manually rendering SymbolMasters rather then relying on inject.

@jaridmargolin jaridmargolin merged commit 78dc7eb into airbnb:master Jun 10, 2018
@porada
Copy link

porada commented Jun 11, 2018

@jaridmargolin Could you release a new version that includes this patch?

@jaridmargolin
Copy link
Collaborator Author

I actually do not have publish rights... but @mathieudutour does :)

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.

Symbols are not rendering
3 participants