marceloadsj / react-indicative-hooks Goto Github PK
View Code? Open in Web Editor NEW✈️ A wrapper between React Hooks and Indicative library
Home Page: https://www.npmjs.com/package/react-indicative-hooks
License: MIT License
✈️ A wrapper between React Hooks and Indicative library
Home Page: https://www.npmjs.com/package/react-indicative-hooks
License: MIT License
Hey @marceloadsj,
I am about to push PR but wanted to address here several things so that we will agree with changes that I will do, it's your package anyway.
indicative
(which is w major versions behind) and nothing major has been changed in dist
folder. To be clear, this will require to bump node
restriction on engines
section of package.json
to at least version 10, but I will even recommend to bump it to current LTS 12.14.1.react-scripts
and use webpack
right away. react-scripts
has a lot of dependencies which are even pinned and so this adds a lot of duplicates. I can implement webpack version and add jest as you are using it. Basically this will lower number of dependencies (and less dependencies are always good, because vulnerabilities, upgrades, ...), and seems like you are using only that two features of react-scripts
.If you don't agree or need more details please refer to points with numbers.
Hey @marceloadsj,
This line has a problem. Basically if you pass messages to useValidateAll
then they are static and are not changing. This is a big problem if you use translations and messages have changed on the fly (without refresh of a page).
Would be nice to have them as a dependency (maybe even rules should be a dependency, I don't know.).
If you are ok the I will open a PR with changes.
p.s. same for useValidate
.
Hi,
I have this error after upgrading to 1.2.0
error: bundling failed: Error: While trying to resolve module `react-indicative-hooks` from file `/Users/admin/Documents/git/sparvest-mobile/sparvest/app/scenes/SignIn/index.js`, the package `/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/react-indicative-hooks/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/react-indicative-hooks/dist/index.umd.js`. Indeed, none of these files exist:
* `/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/react-indicative-hooks/dist/index.umd.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
* `/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/react-indicative-hooks/dist/index.umd.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
at ResolutionRequest.resolveDependency (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:65:15)
at DependencyGraph.resolveDependency (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/node-haste/DependencyGraph.js:283:16)
at Object.resolve (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/lib/transformHelpers.js:261:42)
at dependencies.map.result (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/DeltaBundler/traverseDependencies.js:399:31)
at Array.map (<anonymous>)
at resolveDependencies (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:18)
at /Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/DeltaBundler/traverseDependencies.js:269:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
at _next (/Users/admin/Documents/git/sparvest-mobile/sparvest/node_modules/metro/src/DeltaBundler/traverseDependencies.js:107:9)
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.