Fork me on GitHub
#fulcro
<
2018-12-17
>
tony.kay15:12:41

they added another one??? jeez

tony.kay15:12:01

how many lifecycle methods do we need?

tony.kay16:12:28

@claudiu Is your PR done?

claudiu18:12:21

@tony.kay code is working, still need to update doc/book with new default method.

currentoor19:12:56

this lifecycle seems like a pretty good idea IMO, good way to handle error is render

tony.kay19:12:12

I mean they already had componentDidCatch, which can side effect (and set state)…they added this and deprecated the other one

tony.kay19:12:31

prob didn’t work right to side-effect in CDC for some internal reason

tony.kay19:12:52

but this new one breaks Fulcro’s state model that is on top of Reacts 😞

currentoor19:12:09

yeah but the problem is you often don’t want to set-state when an exceptions happens you just want to show an alternative UI, but if the user does something that “fixes” the UI you want to now show the actual UI (rather than the alternative)

currentoor19:12:40

so if you wan to use did-catch for that you also need a did-not-throw to unset the state

roklenarcic20:12:12

I know tony has a bunch of tutorial videos that deal with individual topics, but if I have a bunch of angular guys asking for a video that showcases fulcro and in particularly the reloaded workflow, which video do you suggest?

currentoor21:12:14

I don’t know about a video like that, but you could clone the demo app and demo that live?