Comments (5)
It is State Access Interface. This is documented here: https://github.com/avkonst/hookstate#stateinf
from hookstate.
Perfect, cheers, thanks for the clarification. I finally found the time to give it a try, I'm loving it so far! Thanks a lot!
from hookstate.
Maybe it should have better name. I am thinking to align names in version 2. I have not decided how StateInf, createStateLink, useStateLink and StateLink should be named. I thought to rename it as the following: StateInf => State, createStateLink => createState, useStateLink => useState, and keep StateLink. But it has got the downside that useState may collide with React.useState
. Although it is possible to make useStateLink returning a value compatible with React.useState
return type. In this case useStateLink could just replace React.useState
without side effects (except it will have render optimisation). How do you think we should name the things?
from hookstate.
If you like it, I appreciate if you could spread few words about it to help the project to grow. Thanks!
from hookstate.
In regards to naming in general, Clean Code
has a pretty nice chapter on naming (2cents)
Other than that, I would avoid naming collisions. Makes it harder to read (ah in terms of hard to read, the code examples are pretty hard to read, as they don't have syntax highlighting, maybe just have a docs folders with .mds) Maybe you could also see it like this: State is component scoped and Links are what's interconnecting components. You could have useLink
and createLink
or similar to draw a clear line. I guess it's also easier to market as I think your goal is to become the next redux, which I'd really like to see happen. I really like the zero boilerplate way you enabled!
In regards to spreading the word, we are working on a couple of open-source projects that'll be released soon. I'm very happy to highlight hookstate
as a dependency
from hookstate.
Related Issues (20)
- Resource leak with `useHookstate` HOT 2
- Is this lib still being updated? HOT 3
- Request: throw error when trying to assign nested state to a Proxy object HOT 2
- Migration from 3 to 4 HOT 4
- Localstored - optional initializer HOT 1
- https://hookstate.js.org/docs/exceptions/#hookstate-106 is killing me HOT 1
- What is the meaning of `E` in State<S, E>? HOT 1
- Injecting React-Router-dom instance into the store HOT 1
- one of my favourite projects really HOT 4
- More than 5 extensions loading HOT 2
- Creating a global object using hookstate, but unable to find the property when using it. HOT 2
- How to handle file objects in v4? HOT 1
- Isolating global states between tests HOT 4
- state.attach is not a function
- Combine extensions HOT 3
- Nextjs: localstorage is not defined HOT 6
- having problem with getting rid of proxy HOT 2
- Broadcasted state extension not working HOT 2
- 106 EXCEPTION 'Cannot Convert Undefined Value to Object' Error when setting and getting global store state in two seperate components HOT 2
- Multiple same component, different local hookstates, same info state in all!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hookstate.