This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Releases: contiamo/react-runtime-config
Releases · contiamo/react-runtime-config
3.0.0
After almost 3 years of usage of this library in our product, we did found a lot of little things to improve:
createConfig
now returnsuseConfig
anduseAdminConfig
react hooks- You can also namespace thoses methods with
configNamespace
to avoid name conflicts
- You can also namespace thoses methods with
createConfig
take a simpleschema
props to describe the shape of your configurationtype
,description
, and constraints are now on the same place- the
default
can take a function to have a more reactive config (no more need to reload the application to have the latest config)
useAdminConfig
is more smart about types and give a nice framework to build an admnistration page
1.3.0
- Add
getAllConfig
AdminConfig
have now access todefaultConfig