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.

Adding Data to Multiple Stores Sequentially

See original GitHub issue

Is it possible to add data to object stores sequentially? I have an issue where I need to add data to different stores, but the data just gets added to the store that was last set and throws an error:

Error: Uncaught (in promise): Event: {"isTrusted":true}

Here is a StackBlitz example

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
michaelfdeberrycommented, Nov 22, 2019

I updated the CodeSandBox, https://codesandbox.io/s/angular-e5qpq

This will invoke all the add calls and insert the promises into an array. Promise.all will create a single promise that will complete when all promises in the array are completed.

I moved the setting of the storeName within the iteration as well to ensure that each add call will use the correct store.

1reaction
assuncaocharlescommented, Nov 23, 2019

Sorry I didn’t have enough time to be helpful here but happy that there are people in the community always ready to help 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

inserting data to multiple DB tables sequentially
Requirement: To insert data to multiple database tables say 8 tables in a sequential manner. If by any chance the insertion is failed...
Read more >
Load data in sequential blocks - Amazon Redshift
If you need to add a large quantity of data, load the data in sequential blocks according to sort order to eliminate the...
Read more >
Trying to add multiple sequentially number columns to data ...
If you need to create an empty data frame then you can do the following: DF <- as.data.frame(matrix(nrow=0, ncol=20)) names(DF) <- paste("Val", 1:20, ......
Read more >
Create a list of sequential dates - Microsoft Support
You can quickly create a list of dates, in sequential order, by using the Fill Handle or the Fill command.
Read more >
Sequential Data Store - OSIsoft Documentation
The Sequential Data Store (SDS) is a streaming database optimized for storing sequential data, typically time-series data. It can store any ...
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