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

What is Framer? Join the Community
Return to index
Jon Knoland Blair
Posted Feb 21 - Read on Facebook

Is there a way to pass data between FlowComponent pages?

6 Comments

Chris Camargo

I don't see why not, but I'm not sure the FlowComponent has any methods to help you here. What are you trying to accomplish?

Jon Knoland Blair

I'm loading in a bunch of data from a JSON file, and displaying it. Then when you click one of the layers, I want to send that object over. I guess I could just have a layer on the next page that I target and inject the data into.

Chris Camargo

I would recommend creating a separate object that tracks the data that's specific to the flow. I've used that approach in the past with a shopping cart concept, and it worked well.

Chris Camargo

Then you simply always reference the "in-progress" object, and modify it as needed.

Jon Knoland Blair

Redux for Framer, got it.

Jordan Robert Dobson

Good use case for using the custom property on Layer.

view1 = new Layer
custom: data: null

view2 = new Layer
custom: data: null

view1.onTap ->
view2.custom.data = dataObj.profile
flow.showNext view2

Read the entire post on Facebook