Holds the previous value of a getter.
Previous: undefined
<script lang="ts"> import { Previous } from "runed"; let count = $state(0); const previous = new Previous(() => count); </script> <div> <button onclick={() => count++}>Count: {count}</button> <pre>Previous: {`${previous.current}`}</pre> </div>