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

Fix #264 Preact Router is not able to be extended

Open maslowivan opened this issue 7 years ago • 0 comments

fix #264

Add setCustomHistory function, because customHistory is read-only when exports. Router class now extendable, to extend it - simple copy its constructor without "Object.getPrototypeOf" condition. Add export for canRoute, delegateLinkHandler, routeTo, customHistory, setCustomHistory.

maslowivan avatar Jan 27 '18 21:01 maslowivan