Skip to content
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

Make feedback API reactive compatible #604

Closed

Conversation

ladyginan
Copy link

Hello, dear author of the library,

I tried to implement a custom password strength meter service for a project I'm working on and faced the issue that the library's API works only in a non-reactive way. In my project, I have a reactive API that checks whether a password is strong enough, and I want to be able to customize visual password strength representation according to a reactive API response.

The PR allows the library to process responses asynchronously and synchronously from the scoreWithFeedback function. The PR doesn't currently have changes to the score function, but I can do that if desired.

One test is broken due to asynchronous changes; I commented on it and put TODO.

It would be greatly appreciated if these changes could be accepted🙏

@antoantonyk
Copy link
Owner

antoantonyk commented Nov 4, 2023

@ladyginan Thanks a lot for the suggestion. Since I updated the project to split the dependencies, I have created a separate PR here - #715

@antoantonyk antoantonyk closed this Nov 5, 2023
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.

2 participants