Migrating from SSE to SSE2
Key changes you'll need to make to utilize SSE2's new sse-core
Overview
Key Changes
Migration Steps
Step 1: Update Package
{
"dependencies": {
"@sygnal/sse-core": "^2.0.0"
}
}Step 2: Update Import Statements
Step 3: Migrate Pages to PageBase
Step 4: Migrate Components to ComponentBase
Step 5: Fix RouteDispatcher Instance (CRITICAL)
Step 6: Update Route Registration (Optional)
Step 7: Keep Site Class Using IModule
Available Automatic Context
PageBase - this.pageInfo Properties
ComponentBase - this Properties
Benefits Summary
Feature
v1.x (IModule)
v2.0 (Base Classes)
Testing Your Migration
Common Issues
Issue: "Property 'pageInfo' does not exist"
Issue: Data lost between onPrepare() and onLoad()
Issue: "Cannot read property 'pageId' of undefined"
Backward Compatibility
Need Help?
Last updated