Fork me on GitHub
#re-frame
<
2017-02-08
>
danielcompton00:02:09

sorry, are you asking with a view to implementing it?

danielcompton00:02:30

yeah that's a good point about trigger/modify

danielcompton00:02:47

not really sure how you could avoid it, other than telling people to be careful

superstructor00:02:49

yes with a view to implementation decisions 🙂 yeah I believe it would be prohibitively complex and slow performance-wise to try and prevent that kind of mishap @danielcompton

superstructor00:02:12

actually I managed to to this myself in a unit test 😆 @danielcompton

richiardiandrea02:02:42

My 2c, it could be enabled on debug only, the check is valuable 👍

iGEL15:02:48

Hello. In our SPA, when the user clicks the logout link, I want to do a synchronous post to a certain url just like submitting a standard html form would do it. No Ajax, just post some data, then do whatever the response tells the browser to do (redirect or render the received HTML). How can I do that?

nrako16:02:21

@igel, you might find http-fx useful - https://github.com/Day8/re-frame-http-fx#http-effects-handler-for-re-frame. It does use ajax, but on-success & on-failure will give you the control that you are looking for.

iGEL16:02:46

Thanks, we're using it for our AJAX things, but I now want to do a non-ajax call. I guess, it can't do it

nrako17:02:20

How might one add HTML attributes to the rendered re-com component? Demo is here- http://re-demo.s3-website-ap-southeast-2.amazonaws.com/#/typeahead but can't seem to get it working correctly. Not sure if this is the right place for re-com questions...

nrako17:02:58

The :data-source + typeahead component is working otherwise