<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>spa</anon>
    <anon>react</anon>
  </categories>
  <description>いわゆるブラウザの「戻る」ボタンをクリックして画面を遷移すると、前画面のウィンドウ位置を保持するのが通常です。例えばとあるサイトに一覧画面があるとして、ブラウザを大きくスクロールして特定のレコードを表示し、そのレコードをクリックします。すると当該のレコードの詳細画面に遷移します。ここで「戻る」ボタンを押すと一覧画面に戻り、特定レコードが表示されているスクロール位置に戻る、という挙動です。 この挙動はSPA（Single Page Application）でも同様に期待されます。SPAでは画面遷移が行われても、ブラウザの履歴を操作することで前画面に戻ることができます。しかし、そううまくいかないの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20240505%2F1714858731&quot; title=&quot;SPAで履歴を遷移するときのウィンドウ位置 - 理系学生日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-05 06:38:51</published>
  <title>SPAで履歴を遷移するときのウィンドウ位置</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20240505/1714858731</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
