Epic React V2

Optimize State Updates

The intention is to show optimized states, between prevParams and newParams, not re-render the page if the newParams is equal prevParams

The search params is NOT made with useSearchParams/Next.js like this:
import {(useSearchParams, useRouter, usePathname)} from 'next/navigation'
It means if refresh the page it will give a issue next.js;

On console tab to test code line 27:
Click 3 times in the button submit and after click back and forward history button in the browser.
To test code line 47:
To see the re-rendering the message on console, select params and click in the submit button
Test it by comment and uncoment the optimized code lines