I am rendering using React data streaming. This is done by passing the props to the Client Component as they are in Promise and resolving them using use hooks.
https://react.dev/reference/react/use#streaming-data-from-server-to-client
I want to return a Not Found page depending on the content of the data streaming result, so I currently chain then/catch to the Promise and call Next's notFound().
However, due to streaming, HTML will inevitably respond with a status code of 200 at first, and then a meta tag will be added while switching to a 404 page.
Is this an acceptable implementation of Next? Or is this unexpected behavior and should be avoided?