Rocky_Mountain_Vending/.pnpm-store/v10/files/39/f64c793132262f4adc33d9e8399957037f0459d2953860cbac9fb5ca01ad5b882c422bed52dec735b292cf0eb51e9ad717e064c39ae37d9d25ef6d8f791329
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

12 lines
No EOL
851 B
Text

import { handleExternalUrl } from './reducers/navigate-reducer';
/**
* Handles the case where the client router attempted to patch the tree but, due to a mismatch, the patch failed.
* This will perform an MPA navigation to return the router to a valid state.
*/ export function handleSegmentMismatch(state, action, treePatch) {
if (process.env.NODE_ENV === 'development') {
console.warn('Performing hard navigation because your application experienced an unrecoverable error. If this keeps occurring, please file a Next.js issue.\n\n' + 'Reason: Segment mismatch\n' + `Last Action: ${action.type}\n\n` + `Current Tree: ${JSON.stringify(state.tree)}\n\n` + `Tree Patch Payload: ${JSON.stringify(treePatch)}`);
}
return handleExternalUrl(state, {}, state.canonicalUrl, true);
}
//# sourceMappingURL=handle-segment-mismatch.js.map