Skip to content

Improve initial session data defaults #616

@frankieroberto

Description

@frankieroberto

Currently data/session-data-default.js is completely blank, and so it’s likely unclear to users how to put default data in there.

We could instead change it to something like:

// Use this file to specify default data for your prototype
// that will be set when the prototype first loads, or when
// a user uses the 'Reset data' feature in the footer.

module.exports = {

  // Add your default data here,
  // for instance:
  // 
  // "organisation": "NHS",

}

The GOV.UK Prototype kit does this:

module.exports = {

  // Insert values here

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions