Fork me on GitHub
#fulcro
<
2022-11-30
>
Quentin Le Guennec09:11:49

A fulcro app with the default pathom parser will provide to the user the ability to read the full database, right?

tony.kay15:11:44

You need to be clearer about your question. Pathom won’t read anything unless you write resolvers. If this is a security question, the book covers that in some detail. TL;DR; Fulcro and Pathom cannot possibly provide a security story for your data…because the restrictions always have (in non-trivial apps) complex rules. There is no one-size-fits-all. So the “default” is: If you make a resolver for it, then it is an open API. Fulcro has actually nothing to do with that. That’s all Ring/sessions/and Pathom. Fulcro provides a few lines of glue code.

Quentin Le Guennec08:12:32

Okay, understood, thank you.

Klay16:11:36

I’m in the process of adding routing to my app. I decided not to use the built-in routing (or RAD routing) since I felt it was more complicated than it needed to be, so I’m writing my own by hand. I have two questions about it: 1. When routing, I’d like to modify the wider document (e.g. the head and html elements). I’m able to provide one from the server on the first page load, but routing to a different page wouldn’t update it since the client only controls a part of the body. Is there any recommended method that doesn’t involve reloading the page? 2. As routing in the browser entails modifying the URL, is the best place to side effect (push to the history) in a remote?

dvingo18:11:53

have you tried using an existing lib for this? I would recommend looking into https://reactrouter.com/en/main