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

New HOC api #11

Merged
merged 9 commits into from May 30, 2022
Merged

New HOC api #11

merged 9 commits into from May 30, 2022

Conversation

willybrauner
Copy link
Member

@willybrauner willybrauner commented May 26, 2022

  • create HOC to manage mount & unmount component automatically via useIsMount()
// Create now an external instance :
export const HeaderTransitionsManager = new TransitionsManager()

// component using transitions manager 
const Header = () => 
{
// ...
}
export default TransitionsHoc(Header, HeaderTransitionsManager)
  • auMountUnmount option is now true by default
  • add unit tests

Willy Brauner added 9 commits May 26, 2022 14:21
@willybrauner willybrauner merged commit 2c990fa into main May 30, 2022
@willybrauner willybrauner deleted the test-new-hoc-api branch May 30, 2022 07:26
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.

None yet

1 participant