WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

3.0.0

Latest

Choose a tag to compare

@fabien0102 fabien0102 released this 15 Apr 16:02
· 6 commits to master since this release
9503dc6

After almost 3 years of usage of this library in our product, we did found a lot of little things to improve:

  • createConfig now returns useConfig and useAdminConfig react hooks
    • You can also namespace thoses methods with configNamespace to avoid name conflicts
  • createConfig take a simple schema props to describe the shape of your configuration
    • type, 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