Christian Johansen

Results 83 comments of Christian Johansen

Hi, thanks for giving replicant a spin! The short answer is that you're looking for `:replicant/key`. Replace id with it and your example will behave exactly as expected. Regarding the...

No, that is a bug. It seems Replican't isn't calling unmount hooks on the children of the node that is removed. That should be fixed 👍

When you say "forcefull render", do you mean replacing this: ``` (if (fn? component) [component] component) ``` With just `component`? Sorry, I don't know a lot about how Reagent works....

I have an attempt at a solution. Try using Portfolio from git: ``` {:git/url "https://github.com/cjohansen/portfolio.git" :sha "0795a711f4ab4a13ea1f08be1408b64c2310b469"} ``` Then, where you instantiate Portfolio, add a shadow-cljs after-load hook: ```clj (defonce...

That's strange. I created a separate repo to isolate the issue, but did not see that error. Does this run for you? https://github.com/cjohansen/portfolio-reagent-rendering

The zoom already uses `transform` with the suggested transform origin. But like you say, it also increases the body width and height. I can't quite remember why I did this,...

Portfolio is designed to view snapshots of your UI components, primarily with stateless components in mind. It has some support for atoms to enable scenes to visualise transitions, but in...

I'm having trouble wrapping my head around all the nuances of reagent's inner workings. In any case, I did find that Portfolio was too eagerly unmounting reagent scenes. I fixed...

Hi, sorry for the late response. Yes, Portfolio runs your component in one window, and renders the result in an iframe. This causes problems with globals such as `document`. I...

This will soon have a solution by way of this PR: https://github.com/cjohansen/portfolio/pull/16