This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Blaine Billingsley
Posted Jun 24 - Read on Facebook

Apologies if this has been brought up before, but I am having trouble getting pageComponent to work as I expect. I copy/pasted the example of adding pages via a for loop directly from the docs

For some reason, the last page can't be accessed via swiping. This is also true for the PageComponent snippet that ships with Framer Studio. After pulling my hair out about it for several minutes, I tried the .updateContent() method and it works swimmingly, which is great. But I don't understand why I need to do that? Is this a bug? a feature? should I just be doing it a better way?


Trevor Phillippi

FWIW, I don't think the PageComponent API is meant to be used by simply making children layers of the content layer. I'm p sure it works best by using the .addPage() method. Like so ( In this example I commented your updateContent line, and removed the parent property of the generated layers and instead used addPage.

Eelco Lempsink

Yes, this is a bug, apologies. This will be fixed soon!

Blaine Billingsley

ain't no thang! just wanted confirmation i wasn't going crazy :)

Read the entire post on Facebook