-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
4447
We have decided to prefix callbacks in the Realm configuration with on. Before this breaking change, we need to issue a deprecation warning (API doc and TS defs).
Callback provided by a user, which is called on events (and returns void) should be prefixed with "on".
We have identified the following callbacks (there might be more ...):
- migration (onMigration)
- shouldCompactOnLaunch (shouldCompact)
- error (onError)
- clientResetBefore (onBefore)
{}{ sync: { clientReset: { onBefore() { /**/ } } } }{} - clientResetAfter (onAfter)
- validateCallback (validateCertificates)