preact-router
preact-router copied to clipboard
sync route method
trafficstars
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
@developit We have an onBeforeDestroyComponent that call when one component is replaced by another?
Hi @thadeu - I'm not sure I quite follow what's being asked for here. There's already a componentWillUnmount() method for this.