我有一个 Next.js 项目,用户可以在其中上传属性并应用各种过滤器,例如 amenities、minPrice、maxPrice 等。我创建了一个自定义挂钩,用于在用户单击“重置过滤器”按钮时重置特定查询参数。但是,重置过滤器后,某些参数仍然出现在 URL 中,即使日志表明它们已被删除。这是我的代码...
typescript: 5.5.4 Next.js Config: output: N/A Which area(s) are affected? (Select all that apply) Navigation Which stage(s) are affected? (Select all that apply) next dev (local), next start (local) Additional context No response...
throw 'routeChange aborted. This error can be safely ignored - https://github.com/zeit/next.js/issues/2476.' if (ok) { handleModalClose() } handleModalClose() }, [shouldWarn, handleModalClose, router]) }, [shouldWarn, handleModalClose]) const setTxFlow = useCallback( (txFlow: Tx...