Skip to content

Release: v7.1.6#705

Merged
sherakama merged 2 commits intomainfrom
release/v7.1.6
Mar 20, 2026
Merged

Release: v7.1.6#705
sherakama merged 2 commits intomainfrom
release/v7.1.6

Conversation

@sherakama
Copy link
Member

READY FOR REVIEW

Summary

  • Browser history instant search state hack

su-sws-jira and others added 2 commits March 11, 2026 13:03
* Browser history fix/hack.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 20, 2026 18:00
@netlify
Copy link

netlify bot commented Mar 20, 2026

Deploy Preview for adapt-giving ready!

Name Link
🔨 Latest commit 24e260e
🔍 Latest deploy log https://app.netlify.com/projects/adapt-giving/deploys/69bd8b2ce3c5950008cf565c
😎 Deploy Preview https://deploy-preview-705--adapt-giving.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release-focused PR updating the Next.js/Netlify/Storyblok dependency set and adjusting the search experience to better handle InstantSearch state across navigation.

Changes:

  • Bump core deps (Next.js, Netlify functions/plugin, Storyblok SDKs, cookies-next, react-instantsearch-nextjs).
  • Add an InstantSearch state reset workaround in the Search component (key + future.preserveSharedStateOnUnmount: false).
  • Make stateToRoute resilient to missing index UI state.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
package.json Updates dependency versions for the v7.1.6 release set.
package-lock.json Locks updated transitive dependency graph from the version bumps.
components/Search/Search.tsx Forces InstantSearch state reset across navigation and hardens route mapping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +63 to +66
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
setKey(`search-component-${Date.now()}`);
}, []);
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The useEffect updates key on initial mount, which forces <InstantSearchNext> to unmount/remount immediately after first render (and in React StrictMode dev it may happen twice). This can trigger an extra search request and requires an eslint disable. Consider generating a per-mount key without a post-render state update (e.g., initialize it via a lazy useState initializer or useRef) and remove the set-state-in-effect suppression.

Copilot uses AI. Check for mistakes.
Comment on lines +43 to +45
"@netlify/functions": "^5.1.4",
"@next/third-parties": "^16.2.0",
"@storyblok/react": "^5.4.22",
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title/description indicates a release for v7.1.6, but package.json still declares version 7.1.5. If this PR is meant to publish v7.1.6, the package version should be bumped accordingly (or the PR metadata adjusted if releases are handled elsewhere).

Copilot uses AI. Check for mistakes.
@sherakama sherakama merged commit 226709b into main Mar 20, 2026
14 of 17 checks passed
@sherakama sherakama deleted the release/v7.1.6 branch March 20, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants