<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Artur Slomowski</title>
    <description>The latest articles on DEV Community by Artur Slomowski (@tarvald).</description>
    <link>https://dev.to/tarvald</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F666929%2Fa8760d8e-b4ed-4a6a-95bb-aad00ac62849.png</url>
      <title>DEV Community: Artur Slomowski</title>
      <link>https://dev.to/tarvald</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tarvald"/>
    <language>en</language>
    <item>
      <title>New hydration errors mismatch messages</title>
      <dc:creator>Artur Slomowski</dc:creator>
      <pubDate>Fri, 12 Apr 2024 08:40:05 +0000</pubDate>
      <link>https://dev.to/tarvald/new-hydration-errors-mismatch-messages-5fh6</link>
      <guid>https://dev.to/tarvald/new-hydration-errors-mismatch-messages-5fh6</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;This morning I found very wonderful tweet on the X platform&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/sebastienlorber/status/1778034701682233449/photo/1"&gt;https://twitter.com/sebastienlorber/status/1778034701682233449/photo/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also found this PR:&lt;br&gt;
&lt;a href="https://github.com/reactjs/react.dev/pull/6742/files"&gt;https://github.com/reactjs/react.dev/pull/6742/files&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And inside of this, I found this piece of documentation&lt;br&gt;
&lt;a href="https://github.dev/rickhanlonii/react.dev/blob/db2dc7f9875f00688cd6ffc511abf5849c21952a/src/content/reference/react-dom/client/hydrateRoot.md#L507"&gt;https://github.dev/rickhanlonii/react.dev/blob/db2dc7f9875f00688cd6ffc511abf5849c21952a/src/content/reference/react-dom/client/hydrateRoot.md#L507&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Does anyone know when is gonna be released into react?&lt;br&gt;
I cannot find any react development roadmap, but I very looking forward for this feature.&lt;/p&gt;

&lt;p&gt;React hydration mismatch errors cause lots of troubles these days and they are very hard to debug&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>RenderToNodeStream and http status codes</title>
      <dc:creator>Artur Slomowski</dc:creator>
      <pubDate>Wed, 14 Jul 2021 09:14:31 +0000</pubDate>
      <link>https://dev.to/tarvald/rendertonodestream-and-http-status-codes-9b</link>
      <guid>https://dev.to/tarvald/rendertonodestream-and-http-status-codes-9b</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I would like to implement streaming rendering to our app.&lt;br&gt;
However, as far I know it is not possible to change http status code during rendering and streaming.&lt;/p&gt;

&lt;p&gt;It means if I start streaming, it sends 200 to the browser, and even if during rendering something will happen, we cannot change status to 500 or 404. &lt;/p&gt;

&lt;p&gt;How are people dealing with this in the case of streaming rendering?&lt;br&gt;
Streaming rendering is highly recommended by the google team for improving core web vitals, but on the other hand, it's not SEO friendly at all.  &lt;/p&gt;

&lt;p&gt;Here is example code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;res.write(htmlHeader);

const renderingStream = renderToNodeStream(&amp;lt;App /&amp;gt;);

renderingStream.pipe(res);

renderingStream.on('end', () =&amp;gt; {
 res.end();
});

// I am tracking error a bit differently, it is just example
renderingStream.on('error', () =&amp;gt; {
  res.status(500);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>react</category>
    </item>
  </channel>
</rss>
