foxhound87 / mobx-react-form-devtools Goto Github PK
View Code? Open in Web Editor NEWDevTools for MobX React Form
License: MIT License
DevTools for MobX React Form
License: MIT License
Hey!
The package is not compatible with React 16 atm.
But if you bump reac-dock
version (0.2.3 -> 0.2.4) it will fix the PropTypes error.
related issue
I see you're registering the forms via the following code, but can you add an example that shows how I could use this from a Mobx store or either from a Mobx form component? I'm confused what loginForm
is linking to exactly (a component?).
// register forms
MobxReactFormDevTools.register({
loginForm,
registerForm,
supportForm,
});
I found the following, but I'm still confused. It looks like it's stuffing whatever you pass into $store
.
registerForm: action((forms) => {
_.merge($store.forms, forms);
_.map(forms, ($form, $key) => _.set($store.select, $key, false));
_.map(forms, ($form, $key) => _.set($store.menu, $key, $form.name || $key));
}),
I'm currently getting the following after upgrading to React 16.
index.js:44 Uncaught TypeError: Cannot read property 'string' of undefined
at eval (index.js:44)
at Object../node_modules/mobx-react-form-devtools/node_modules/react-icon-base/lib/index.js (app.b5d9e80ea563689f9d75.js:9646)
at __webpack_require__ (app.b5d9e80ea563689f9d75.js:707)
at fn (app.b5d9e80ea563689f9d75.js:112)
at eval (th.js:13)
at Object../node_modules/mobx-react-form-devtools/node_modules/react-icons/lib/fa/th.js (app.b5d9e80ea563689f9d75.js:9798)
at __webpack_require__ (app.b5d9e80ea563689f9d75.js:707)
at fn (app.b5d9e80ea563689f9d75.js:112)
at eval (icons.js:7)
at Object../node_modules/mobx-react-form-devtools/lib/icons.js (app.b5d9e80ea563689f9d75.js:8503)
Hello!
I just want to get your thoughts regarding the register() method. So I have this component that wraps the dev tool:
I use it where I want the dev tool to display like this:
This might not be an issue at all especially that it is only used for development, but is there a way to check if stores have been already registered, so that the register method is called only once?
Thanks!
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project β¨
Your semantic-release bot π¦π
I keep getting the following error when clicking on the settings button.
Uncaught Error: [mobx] Invariant failed: Computed values or transformers should not invoke actions or trigger other side effects
at invariant (mobx.js:2674)
at executeAction (mobx.js:627)
at Options.res (mobx.js:621)
at new State (State.js:69)
at new Form (Form.js:143)
at exports.default (form.options.js:61)
at Object.get formOptions (store.js:41)
at ComputedValue.peek (mobx.js:774)
at trackDerivedFunction (mobx.js:944)
at ComputedValue.trackAndCompute (mobx.js:844)
The current mobx-react-form-tools depends on mobx-react-form with version ^1.x.x. However, mobx-react-form is now 2.0.2. I get some error when using mobx-react-form 2.0.2 and mobx-react-form-tools. Cannot mobx-react-form-tools be used with mobx-react-form ^2.0.0 ?
Related to alexkuz/react-json-tree#94
A security vulnerability with a level of high
is reported when running npm audit
/ yarn audit
.
More info about the issue: https://www.npmjs.com/advisories/782
The issue is patched in lodash>=4.17.11
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.