preact-router icon indicating copy to clipboard operation
preact-router copied to clipboard

sync route method

Open thadeu opened this issue 6 years ago • 2 comments

I need the route to be synchronous, so that, just change the screen when the previous one is disassembled. How to do this?

preact version: 8.1.0 preact-router version: 2.5.1

thadeu avatar Jul 22 '19 13:07 thadeu

@developit We have an onBeforeDestroyComponent that call when one component is replaced by another?

thadeu avatar Jul 22 '19 16:07 thadeu

Hi @thadeu - I'm not sure I quite follow what's being asked for here. There's already a componentWillUnmount() method for this.

developit avatar Oct 18 '19 17:10 developit