Back to projects

05 / Project

Content Snapshots

Write the new data to a temporary file before replacing the content file. Compare revisions when two editors submit overlapping changes.

  • Node.js
  • JSON
  • File System

Goal

Save profile and article edits as one versioned snapshot.

Implementation

Write the new data to a temporary file before replacing the content file. Compare revisions when two editors submit overlapping changes.

Try it

Open two admin windows. Save from the first, then try to save the stale draft from the second.

Related article Adding a revision check to an editor