How to use the preact-router.subscribers.splice function in preact-router

To help you get started, we’ve selected a few preact-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github preactjs / preact-router / src / match.js View on Github external
componentWillUnmount() {
		subscribers.splice(subscribers.indexOf(this.update)>>>0, 1);
	}
	render(props) {

preact-router

Connect your components up to that address bar.

MIT
Latest version published 1 year ago

Package Health Score

66 / 100
Full package analysis