How to use the cx/ui.History.replaceState function in cx

To help you get started, we’ve selected a few cx 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 codaxy / dashboards / app / routes / sign-in / Controller.js View on Github external
.then(({ user }) => {
				this.store.set("$root.user", {
					email: user.email,
					id: user.uid,
					displayName: user.displayName,
					photoURL: user.photoURL
				});
				History.replaceState({}, null, "~/");
			})
			.catch(error => {
github codaxy / dashboards / app / routes / new / Controller.js View on Github external
.then(() => {
				History.replaceState({}, null, `~/${id}`);
			});
	}