switchToApp
Arguments
Returns
Example
import lampix from '@lampix/core';
lampix.switchToApp('trivia');
// or
lampix.switchToApp('trivia', {
switchBackTo: 'survey',
specialInformation: 42
});
// Query parameters can be easily accessed as follows:
// (also note the camelCase to kebab-case transformation)
// const queryParams = new URLSearchParams(window.location.search);
// queryParams.get('switch-back-to'); // survey
// queryParams.get('special-information') // '42'Notes
Last updated
Was this helpful?