8000 Add getStore helper + withStore HoC. Change callback + remove Store + add docs + add tests by aralroca · Pull Request #19 · teafuljs/teaful · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add getStore helper + withStore HoC. Change callback + remove Store + add docs + add tests #19

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

Merged
merged 32 commits into from
Nov 1, 2021

Conversation

aralroca
Copy link
Collaborator
@aralroca aralroca commented Oct 25, 2021

Work:

  • Implement getStore helper
  • Implement withStore HoC
  • Unify callbacks to 1 callback inside the createStore BREAKING CHANGE.
  • Implement callback inside useStore and withStore
  • Remove Store component (now with getStore and callback change it no longer makes sense) BREAKING CHANGE.
  • Tests
  • Docs.
  • now occupies 1.2kb 1.08kb 984b, should go down to less than 1kb

@aralroca aralroca requested a review from danielart October 25, 2021 23:19
@aralroca aralroca self-assigned this Oct 25, 2021
@aralroca aralroca added this to the 0.6.0 milestone Oct 30, 2021
@aralroca aralroca changed the title Implement getStore helper and withStore HoC Add getStore helper + withStore HoC. Change callback + remove Store + add docs + add tests Oct 30, 2021
@siddharthborderwala
Copy link
Contributor

Hi, I am Siddharth and I'd like to mention that this is a great library, it is very simple, straightforward and easy to use. Awesome work 👏

I am using it for my university course project and I was looking for something exactly like getStore. I wanted to know if you have an ETA on how long before this PR will be merged?

Thank you.

@aralroca
Copy link
Collaborator Author
aralroca commented Oct 30, 2021

@siddharthborderwala Thanks a lot! It will take me a while to document and test everything well and maybe some fix / improvement, maybe 1 or 2 days. But since you show interest I have made a prerelease with this in:

In theory, everything should work fine, but if you encounter any problem you can comment on it here 🙏 😊

It has some breaking changes that need to be better documented. As we are in an early 0.x stage we try to develop fast to make it tinier, easier and more powerful. It will be more and more stable and from version 1.0 it will be 100% semantic versioning.

@siddharthborderwala

Okay, I hear you. Thank you for your time, what I did is use the index.js file inside package directory and converted it to typescript and now I'm using it in my project.

@aralroca
Copy link
Collaborator Author
aralroca commented Oct 30, 2021

I fixed an error on 0.6.0-canary.2

@aralroca aralroca requested a review from danielart November 1, 2021 01:18
@aralroca aralroca marked this pull request as ready for review November 1, 2021 01:18
@aralroca
Copy link
Collaborator Author
aralroca commented Nov 1, 2021

@danielart the PR is finnaly ready for review.

@@ -25,6 +25,7 @@ module.exports = {
'rules': {
'require-jsdoc': 0,
'react/prop-types': 0,
'prefer-const': 0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielart I have seen that Preact in their projects always use let, this makes the final bundle smaller. I have tried it and it does, it reduces the size a little bit.

@aralroca aralroca merged commit 9146fdc into master Nov 1, 2021
@aralroca aralroca deleted the new-features branch November 1, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0