Fork me on GitHub
#re-frame
<
2022-01-27
>
steveb8n06:01:31

Left field question: I want to use a re-frame app as a component in another react (not cljs but typescript) app. Is there a known way to do this? i.e. something like the reagent adapt fn but for a root re-frame app

steveb8n06:01:38

this is for dev tooling for an external contractor using typescript and storybook. I want to provide a re-frame app that he can run in storybook as a component with props etc

steveb8n06:01:40

I’m thinking I just need the normal startup events in a component-did-mount fn and that should be enough. I’ll report back here with results but would appreciate any experience from others

steveb8n23:01:24

ok, I can confirm it’s possible to start re-frame from the component-did-mount fn. looks like this will work as long as I can export using shadow to a format that typescript will understand

Gavriel Loria19:01:51

Hi there, is there a general rule for when to use reg-sub-raw over reg-sub?

p-himik19:01:52

When reg-sub is insufficient. reg-sub is just a higher-level API, that's all. Well, and it has tracing, but that shouldn't be the reason to choose reg-sub-raw over it.

NoahTheDuke20:01:15

opened an enhancement issue about a not-a-bug that i just tripped over: https://github.com/day8/re-frame/issues/750