DATE:
AUTHOR:
PowerSync Product Team
PowerSync Service Flutter SDK React Native SDK JS WEB SDK

Client parameter support in Flutter, React Native and JS Web

DATE:
AUTHOR: PowerSync Product Team

Building on the improvements we made to sync rules, we are excited to share that we now support passing parameters from PowerSync clients directly. These parameters can be used in sync rules' parameter queries to further filter or limit data synced to the client. This is useful for cases where dynamic syncing is required, for example:

  1. Lazy-load large datasets on the client app.

  2. Sync data based on state in the client app. For example, only sync data for the customer currently selected.

  3. Sync different data based on the client version (example).

It's important to note that, because a client can pass any value and sync data accordingly, client parameters should always be treated with care, and should not be used for access control purposes. Read more about insecure vs secure ways of using client parameters here.

Support for client parameters is available in the following SDK versions:

Support in our Kotlin Multiplatform and Swift SDKs is planned.

Learn more about client parameters in our docs here.

Powered by LaunchNotes