Comments (5)
Sounds like you are using AceBase on the UI (BrowserWindow
) thread instead of in the main (Node.js) process. Move the AceBase code into your main process (or preload.js) to store data to your local file system.
from acebase.
@appy-one yeah, got it going in that env, but it led to a follow-up question: do you know of any existing uses of AceBase in Electron that show the best way to leverage the storage residing in the main Node process from the render process? I suppose IPC messaging?
from acebase.
I don't have any experience with this myself, but I reckon Electron's IPC is indeed the easiest way to pass data back and forth
from acebase.
Maybe even better, this is what I would do: start a local acebase-server instance in your main process and use an acebase-client in your UI thread to connect to it!
from acebase.
Thank you for the suggestion, I think the server route is likely to be the easiest, so I'll try that!
from acebase.
Related Issues (20)
- pm2 cluster detection HOT 1
- import {} does not work with this package. HOT 3
- When using "mutations" with a subscription it's throwing a warning HOT 5
- Unhandled Error but when i restarted the db the errors gone HOT 10
- Special chars in path corrupt data HOT 1
- Browser Acebase broke after last update HOT 2
- Schema validation fails for updates on higher path HOT 1
- Can't import { AceBase } with moduleResolution="nodenext" in tsconfig.json HOT 1
- Multiple TypeScript errors when using package acebase HOT 3
- Live query and indexing HOT 8
- `ref().get()` works while `query().get()` returns an empty array HOT 1
- Removing a large dataset throws RangeError HOT 1
- filter on nested data and IN operator for string type
- TypeError when trying to add new records after removing old ones HOT 1
- Any plan yo add Dart/Flutter support
- Error: DEV: Applied tree fixes did not change 88 pending operation(s) failing to execute HOT 1
- MySQL back-end & sync HOT 1
- Python Client or RESTful APIs?
- IPC mode 'socket' fails for new database & paths with spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acebase.