This repository was archived by the owner on Jun 11, 2024. It is now read-only.
After almost 3 years of usage of this library in our product, we did found a lot of little things to improve:
createConfignow returnsuseConfiganduseAdminConfigreact hooks- You can also namespace thoses methods with
configNamespaceto avoid name conflicts
- You can also namespace thoses methods with
createConfigtake a simpleschemaprops to describe the shape of your configurationtype,description, and constraints are now on the same place- the
defaultcan take a function to have a more reactive config (no more need to reload the application to have the latest config)
useAdminConfigis more smart about types and give a nice framework to build an admnistration page