This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-04
Channels
- # boot (41)
- # cljs-dev (1)
- # cljsrn (64)
- # clojure (63)
- # clojure-argentina (2)
- # clojure-austin (1)
- # clojure-russia (1)
- # clojure-spec (1)
- # clojure-uk (59)
- # clojurebridge (1)
- # clojurescript (45)
- # cursive (3)
- # datascript (7)
- # dirac (34)
- # emacs (15)
- # hoplon (1)
- # jobs-discuss (1)
- # jobs-rus (5)
- # klipse (180)
- # lumo (3)
- # om-next (1)
- # re-frame (7)
- # reagent (6)
- # ring (20)
- # specter (10)
- # testing (2)
- # uncomplicate (15)
- # untangled (39)
Client 0.8.0 on clojars. Adds:
- Added defmutation
- Fixed up namespaces that defined macros to allow for implicit macro usage by adding self-references
- Added support for multiple remotes (networking option now accepts a map)
- NOTE: clear-pending-remote-requests!
now requires a remote parameter.
- Added support for progressive load updates (nice for file
upload support)
I've got a branch of untangled-ui with working file upload on forms. Still needs clean-up, but is working pretty well.
@baris currently embedded in one ns here: https://github.com/untangled-web/untangled-ui/blob/feature/upload/src/guide/untangled/ui/Forms__09_Predefined_Fields.cljs
https://github.com/untangled-web/untangled-ui/blob/feature/upload/dev/clj/upload_server.clj
nothing really special there...just handles post to /file-upload (https://github.com/untangled-web/untangled-ui/blob/feature/upload/dev/clj/upload_server.clj#L128)
@tony.kay that’s fantastic…I’ll try it tomorrow and then implement it in my project next week...
so you'd get an Untangled mutation on the form, which would have already uploaded the files.
I’m busy with other things....but my first impression is very promising. independent cleanup or not
meant to be a reusable thing. Custom rendering of progress, etc. Just a couple of mutations and a UI component. The form support makes the state management story easier
e.g. you upload the file, but the tempid remap happens when you submit the form...which allows you to separate the file upload logic from the application logic.
@fragamus that exception doesn’t say much other than it cant find the class Lifecycle
Can you provide some code, probably just your app.system
?
Also are there any conflicts/warnings when you do lein deps :tree > /dev/null
@fragamus Try making sure you have a :min-lein-version in your project file of a recent lein version
at least 2.0.0...heroku defaults to something very old. I remember having problems there
Also, remember that your runtime classpath will not be the same as dev. I think you might have to specify a profile to get deps to tell you the right thing.
i changed it to 2.7.0 but I got this message: Warning: This project requires Leiningen 2.7.0, but you have 2.6.1
Hm. It appears to be there. Have you tried upgrading everything to latest versions? untangled-client, om, cljsbuild, etc.? Also, try putting a hard dep on component in your deps with the latest version @fragamus
Ok I shall try that later when I am near my dev box. One thing I noticed is really weird. The app crashes twice. The first time heroku brings it up it times out for port binding. There is no exception regarding SS. But there is also no output from my main which should say hello world. After that, it appears to retry and that's when the SS thing goes wrong.
Tony, I'm just trying to make the websockets recipe run on heroku. Maybe we can start over from that recipe.