fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Adrian Aleixandre 2021-05-30T16:32:37.066300Z

I have finally gotten my head wrapped around the core Fulcro concepts and decided to look into what RAD has to offer and damn! I have worked on months-long projects what would have been knocked out in a few weeks with RAD. Incredible work ❤️ The main thing that I appreciate so much is that you get tons of functionality out-of-the-box without sacrificing customization when you need it. It feels a lot more like working on an extremely well-architected app than using a framework.

❤️ 6
mgxm 2021-05-30T21:29:43.067300Z

It's possible to change the dynamic router id? Basically, I want to have the same router showing different components

Jakub Holý 2021-05-31T11:55:03.069200Z

Could you explain the split view use case little more? Do you want to be able to show any number of users side by side? Or always just two? If it is the former that something like a floating root is more suitable, when the app structure is so dynamic. If it is just two then you could have a parent component SplitView that simply displays one person in each side, and use routing params (used extensively in RAD reports) to tell it what persons to show.

mgxm 2021-06-01T03:43:43.071900Z

It's a highly dynamic page, so I can have N numbers of the same component (router) showing different users. Take the nubank workspaces for example, were you can have N cards with different components. As I can see, the workspaces use the concept of floating root right? If yes, I will take a look in their code to get a gasp of how it's works, cause I'm not familiarized with the concept right now.

Jakub Holý 2021-06-01T08:08:54.081600Z

Yep, in this case a router is not a good fit and a floating root component is the way to go, I think.

mgxm 2021-06-03T20:26:53.128200Z

hey @holyjak, thanks a lot. I found out the multi-root examples on the main repo and I think that is the right way to go

👍 1
Jakub Holý 2021-05-30T22:20:23.067400Z

Could you please explain? It already can show different components, ie different targets, depending on which target you route to? What is your use case / what & why you need?

mgxm 2021-05-30T22:48:18.067600Z

Sure, I have an PersonDetailsRouter, with that router I'm already showing the person 1 details perfectly. Now, I want to have a split view showing the details of the user 2, side-by-side. Routes: 1) ["person" 1] 2) ["person" 2] But I can't do that, cause the Routers Id's are the same, changing the router of one, will change both.