Fork me on GitHub
#reagent
<
2016-04-16
>
fenton00:04:22

does reagent re-render on browser reload/refresh?

mikethompson00:04:02

> broswer reload/refresh By this do you mean clicking the "reload" button on the browser?

mikethompson00:04:34

If so, Reagent doesn't rerender. The whole page gets blown away and replaced. You get an entirely new app from the ground up. .

fenton00:04:35

hmmm... wonder why none of my code get called (debugged out to the console)...only happens on a file refresh ... using boot cljs

fenton00:04:38

yes clicking the reload button

gadfly36100:04:49

Where are you sticking your debug stuff, can you show an example? Sounds like you might only be logging when a component mounts as opposed to renders

fenton00:04:23

let me try to parse an example from my code...

fenton00:04:29

@gadfly361: not that I am, but wouldn't logging at either point, component mount OR render, be rerun if its an entirely new app from the ground up?

gadfly36100:04:31

I apologize, i read page refresh instead of what you wrote: file refresh

gadfly36100:04:16

Then my question becomes, are you logging from inside a component?

fenton00:04:27

and outside it too

fenton00:04:06

nothing shows up...i'll have to create a distilled example (will take me a bit) then see if that still has the issue and if so share that...my code is hopeless hard to share...too much for others to grok...

gadfly36100:04:04

No worries, just post again whenever you have an example and we are all happy to help :)

fenton00:04:45

ok...be (maybe not right) back. simple_smile thanks!

rafd15:04:23

@fenton perhaps you are seeing old code? (browser caching? boot encountering a compile error and not recompiling?)