-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/feedback store #133
Feat/feedback store #133
Conversation
BREAKING CHANGE: Changes components names
🎉 This PR is included in version 9.0.0-rc.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
const geode_store = use_geode_store() | ||
|
||
const body = params || {} | ||
|
||
const { valid, error } = validate_schema(schema, body) | ||
|
||
if (!valid) { | ||
errors_store.add_error({ | ||
feedback_store.add_feedback({ | ||
type: "error", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai un peu peur de ce "error", c'est sujet à typo et problème... Quid d'une méthode add_errror comme avant qui rajouterait le type error mais directement dans le store. Qu'au moins dans un usage classic d'une error, info ou autre actions on ait le paramétrage par défaut dns le store directement ?
🎉 This PR is included in version 9.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.