Advanced Features
Advanced features of Royco SDK for customizing and extending the native functionality
Custom Hooks
You can create custom hooks by combining multiple queries and hooks together. This can be useful when you want to fetch multiple data points and show them in a single component without repeating the same logic and worrying about caching -- because we have already taken care of keys and data invalidation at regular intervals, so you can keep building your custom components and all the relevant data will be automatically fetched and updated in the most efficient way.
Custom Queries
You can write on your own queries on top of our existing tables and views to match your requirements. In order to do that, you can refer the type Database
which is a generic type that lists out all the tables & views available along with their corresponding columns. You will need to write a custom query and pass that to royco client from useRoycoClient
to fetch the data.
Last updated on