Fork me on GitHub
#clojure-uk
<
2017-12-09
>
maleghast13:12:06

Well, I am trying to work, while policing the noise levels of my selfish kids who can’t seem to understand that their mother is not well and trying to sleep.

maleghast13:12:17

TLDR; not great, but thanks for asking.

maleghast13:12:03

I am also completely stumped as to how to make sure that my Reagent app resets its scroll position to the top of the page when I switch views.

guy13:12:03

😞 sorry for u

maleghast13:12:57

Thanks @guy - It’s just another day in the sunny paradise of parenthood. Of course the irony is that there are times, even days that make all the bad stuff seem so irrelevant 🙂

guy13:12:11

yeah i know how you feel

guy13:12:20

I’ve got a 2 and an 9 month year old

guy13:12:25

it can be quite mental at times

maleghast13:12:33

That’s basically the same age gap as my two, but mine are now 6 and 5

maleghast13:12:48

/clojurebot (- 24 9)

maleghast13:12:16

I don’t know how to make that work…

maleghast13:12:42

I mean it would appear that you have a 15 month age gap, which is exactly what we have between ours.

dominicm13:12:12

@maleghast how do you switch page?

maleghast13:12:41

I’ve fixed it…

(js/window.scrollTo 0 0)

maleghast13:12:13

just thrown that into my “activate view” functions before they swap the new state into the (r)atom that holds the app state

maleghast13:12:28

Just needed to up my Google game and I found it.

maleghast13:12:49

(One of those, not really__ proficient in CLJS moments 😉 )

maleghast13:12:55

I know - I R SUCH A N00B!

dominicm14:12:42

I feel weird that there's no way to indicate about a page change via some browser api. I wonder if there's anything else that a traditional page does when changing.

maleghast15:12:15

Yeah… I mean you can implement Push States in Cljs SPAs, I assume…

maleghast15:12:24

That might make things clearer.