-
Notifications
You must be signed in to change notification settings - Fork 0
Change Detection
Daniel Puckowski edited this page May 25, 2024
·
3 revisions
Sling supports two change detection strategies: automatic and manual. The default mode is automatic.
Strategy | Description |
---|---|
s.CHANGE_STRATEGY_AUTOMATIC |
Automatically update components after browser events and requests. This is the default setting. |
s.CHANGE_STRATEGY_MANUAL |
Manually update components after browser events and requests. |
Automatic change detection performs updates upon the following:
- All browser events (click, mouseover, keyup, etc.)
- XMLHttpRequest API requests
- Fetch API requests
Automatic change detection does not perform updates upon the following:
- Websocket events
- IndexedDB callbacks