tingToDeclaration/">Either</span>.</p><p class="paragraph">This hook provides a type-safe way to switch between two values of different types using the <span data-unresolved-link="arrow.core/Either///PointingToDeclaration/">Either</span> type from Arrow. It's useful when you need to maintain type information while toggling between different states.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">A pair containing the current <span data-unresolved-link="arrow.core/Either///PointingToDe