v3.0.1
- prevent unnecessary removal of ref in strict mode (https://github.com/dromru/react-photoswipe-gallery/issues/1317)
v3.0.0
This release mostly focused on refactoring and improvement to Item component.
-
reftype changed fromref objecttoref callback. For most users there is nothing to do with passing ref to node, it works the same way (ref={ref}). But now you no longer need to cast ref manually, so you will have to remove manual casting if you have such. - Removed possibility to omit passing
refto node if there is only oneItem. Now you always have to pass it.
Refactoring led to removing useLayoutEffect, so there is no more warning introduced in 2.2.7