How to: Use Cross-Runtime Support

Overview

Cross-Runtime Support enables Creators Also known as Unqork Users, or Designer Users; is anyone who is inside the Unqork platform. to easily adopt Unqork's new Vega runtime into their existing and future applications. With Cross-Runtime Support, Creators can create mixed applications that seamlessly switch between Centauri and Vega modules, or use a Panel component to drag and drop, import, or dynamically-refresh Vega components into Centauri modules.

There are several methods available for using Cross-Runtime Support. The first method is to build new modules in Vega. Cross-Runtime Support automatically switches between Centauri and Vega runtimes as needed. Other methods use the Panel component to add, import, or dynamically refresh the Vega runtime and components into a Centauri application.

You cannot import Centauri modules and components into Vega modules.

The following methods are available to optimize your Centauri application with Vega:

Switch Between Runtimes by Module

A static image displaying the Cross-Runtime Support switching between Centauri and Vega Modules.

Each module can run on a separate runtime. Cross-Runtime Support automatically switches between Centauri and Vega modules when using the following module-to-module navigation methods:

  • Using a Workflow Task node to switch between modules.

  • Using the Output Type of page to update the URL with a new module ID.

  • Manually updating the URL with a new module ID.

The Navigation component does not use Cross-Runtime Support as it switches between Panel components instead of modules.

  • When possible, separate logic between runtimes to reduce configuration debugging and maintenance.

  • When you need to perform logic on component data from both runtimes, perform the logic in Centauri. Vega runtime data continously syncs with the Centauri runtime.

  • For existing applications, consider how much of the Vega runtime you want to implement. You can keep as much of your Centauri configuration as needed, or update your application to be Vega-First.