miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
6.04k stars 1.51k forks source link

Modify history to a client component #186

Closed miurla closed 4 months ago

miurla commented 4 months ago

Problem

Calling router.refresh at the end of the request to update the history, because it is a server component.

Solution

Modify to a client component and update when necessary.