kettanaito / atomic-layout

Build declarative, responsive layouts in React using CSS Grid.
https://redd.gitbook.io/atomic-layout
MIT License
1.13k stars 33 forks source link

useResponsiveValue: Fires a side effect on dependency change #327

Closed hallaji closed 4 years ago

hallaji commented 4 years ago

The useResponsiveValue hook does not update the value if one of the dependencies changes. Internationalisation is a good example for this situation.

Changes

Issues

Release version

Contributor's checklist

hallaji commented 4 years ago

@kettanaito Hey Artem, Are you accepting pull requests on this repo?

kettanaito commented 4 years ago

Hey, @hallaji! Thank you for preparing this. I've been busy, so I overlooked this one, my bad.

kettanaito commented 4 years ago

I've updated your feature branch against the latest master. The changes look good to me, let's wait for the CI.