factly / dega

A lightweight, scalable & high performant CMS written in Go & React. Developed for modern web features with all the best practices built-in.
Apache License 2.0
14 stars 6 forks source link

Upgrade to react 18 #914

Closed surajmn1 closed 4 months ago

surajmn1 commented 1 year ago

closes #913

cloudflare-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: bf67821
Status: ✅  Deploy successful!
Preview URL: https://98de7858.dega-docs.pages.dev
Branch Preview URL: https://add-claims-extension.dega-docs.pages.dev

View logs

surajmn1 commented 1 year ago

currently after submitting forms on success we navigate to other pages , the implementation provided by v6 useNavigate doesnt seem to work unless it is wrapped in a useEffect . So i have added a custom hook useNavigation to address the issue.

https://stackoverflow.com/questions/72209195/you-should-call-navigate-in-a-react-useeffect-not-when-your-component-is-fi @shreeharsha-factly