question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ACTION] Data Store Actions

See original GitHub issue

Is there a specific app this action is for? data_stores

New actions

  • List keys in Data Store: await this.db.keys()
  • Delete all keys in a Data Store: await this.db.clear() (include a note about this being an irreversible change, so use with caution)
  • Check existence of keys: await this.db.has(key) (returns true/false)

Updates to existing actions

  • Can we use async options now to fetch existing keys for the add-update-record action?
  • Update delete-record action to use await this.db.delete(key) (and rename action “Delete single record”

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ctrlaltdylancommented, May 10, 2022

@vellames-turing sorry I wasn’t clear enough.

I was hoping it would allow the user to define an array of keys, and then return the value of each corresponding key from that particular data store:


{
  props: {
     keys: {
        type: 'string[]',
        description: 'List of keys to retrieve from the Data Store'
     }
  }
}

The $return_value would be an object with each key & value pair.

Does that help?

1reaction
dannyrooseveltcommented, May 2, 2022

Get multiple keys with one action possible?

We should be able to return multiple key-values in a single action, I don’t see why not (cc @vellames-turing )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redux Fundamentals, Part 2: Concepts and Data Flow
Action : code that causes an update to the state when something happens ... The actions, the events that occur in the app...
Read more >
Send Action Data to the Store - DEV Community ‍ ‍
Actions usually come from some user interaction and they tend to carry some data with them which Redux store needs to know. Code:....
Read more >
send-action-data-to-the-store.english.md - FreeCodeCamp
You need to add a case that handles the addNoteText() actions. This case should be triggered whenever there is an action of type...
Read more >
Send Action Data to the Store - Redux - Free Code Camp
In this Redux tutorial we send action data to the store. This video constitutes one part of many where I cover the FreeCodeCamp ......
Read more >
Actions | Vuex
Action handlers receive a context object which exposes the same set of ... Actions are triggered with the store.dispatch method:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found