This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-30
Channels
- # adventofcode (3)
- # announcements (4)
- # babashka (42)
- # beginners (56)
- # biff (23)
- # cider (8)
- # clj-yaml (2)
- # cljdoc (16)
- # clojure (83)
- # clojure-europe (52)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-sweden (2)
- # clojure-uk (2)
- # clojurebridge (1)
- # clojurescript (2)
- # cloverage (1)
- # cursive (11)
- # data-oriented-programming (1)
- # deps-new (2)
- # dev-tooling (2)
- # emacs (3)
- # etaoin (4)
- # events (5)
- # fulcro (5)
- # gratitude (3)
- # java (3)
- # jobs (1)
- # jobs-discuss (1)
- # joyride (33)
- # malli (16)
- # music (1)
- # nbb (1)
- # nrepl (4)
- # nyc (1)
- # off-topic (25)
- # pathom (8)
- # re-frame (1)
- # reitit (7)
- # remote-jobs (2)
- # shadow-cljs (6)
- # tools-deps (9)
A fulcro app with the default pathom parser will provide to the user the ability to read the full database, right?
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.
Okay, understood, thank you.
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?
have you tried using an existing lib for this? I would recommend looking into https://reactrouter.com/en/main