bhauman / bhauman/devcards

Is there a way to massage the state in history mode?

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
1.5k
Forks
106
PR merge metrics
No merged PRs in 30d

Description

I am developing a game and I allow one of my cards to be "live" (`:live? true` in my data) which means that the clock ticks every few mileseconds. This causes a problem in history mode, because navigating to the previous state would turn `:live?` on what mutates the state right after I navigate one step on the past. I would like to set this flag to `false` either when I am in history mode or when it is saving the snapshots.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the history-mode navigation and the code that saves state snapshots; the issue does not name files or tests. Determine where the :live? flag should be set false, then verify that navigating to a prior state no longer causes the clock to mutate it.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.