Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

Scroll page instead of navigating#15

Open
tamlyn wants to merge 1 commit intounindented:masterfrom
tamlyn:scroll-instead-of-navigate
Open

Scroll page instead of navigating#15
tamlyn wants to merge 1 commit intounindented:masterfrom
tamlyn:scroll-instead-of-navigate

Conversation

@tamlyn
Copy link
Copy Markdown

@tamlyn tamlyn commented Mar 27, 2018

This is because the isolated mode in RSG, which is used for getting the component URL, is not available when pagePerSection is true. See #14.

Needs more testing (like does it work with your conditional rendering component) but I'm just putting it out there as a possible fix.

Other approaches I tried:

  • Construct isolated URL from data-preview name property (doesn't work because only the first isolated view for each section is accessible in RSG).
  • Cycle through all previews on the page and screenshot them in turn (doesn't work because you can't screenshot elements that are outside the viewport)

This is because the isolated mode in RSG, which is used for getting the component URL, is not available when pagePerSection is true.
@unindented unindented force-pushed the master branch 2 times, most recently from 8c80c44 to 4977af8 Compare June 10, 2018 17:01
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.

1 participant