Fork me on GitHub
#re-frame
<
2022-05-24
>
Franklin12:05:05

if I have a JSON file on some URL such as https://server-url/file.json how can I retrieve that JSON and store it in db?

sansarip22:05:30

@USWTQB9RU if you need an example, you can look here https://github.com/sansarip/nw-calculator/blob/main/src/cljs/nw_calculator/events.cljs#L57-L71 You can omit the handlers/next-state function, and just use the map being passed as its first argument

Franklin06:05:56

thanks!

👍 1