Comments (13)
I think the problem arises if you build the project with polymer build
from app-storage.
Found the solution. I added:
"bower_components/app-storage/app-indexeddb-mirror/app-indexeddb-mirror-worker.js",
"bower_components/app-storage/app-indexeddb-mirror/common-worker-scope.js"
To polymer.json
. From the polymer starter kit
from app-storage.
However when I run the demo then my persistedData
never takes the values from indexdb. I put in manually some values in there but persistedData
is not updated. @abdonrd you ever had that issue?
from app-storage.
I think is the same issue: https://github.com/Polymer/polymer-build/issues/22
from app-storage.
@abdonrd but it worked for me with adding it to the polymer.json... and doesn't explain that persistedData
does not updated, right?
from app-storage.
When I tried this, didn't work: https://github.com/Polymer/polymer-build/issues/22#issuecomment-248537950
from app-storage.
jep, saw that thanks @abdonrd :) but I was more asking about the general usage (because documentation is veeery limited for this element).
So persistedData
actually never got updated. Also not if I served it over polymer serve
alone. Did it ever work for you?
from app-storage.
Yes, with polymer serve
it works for me:
from app-storage.
@abdonrd Could you help me out real quick? I only get the persistedData
if the normal data
(or liveData
) has been set/updated:
I included it:
<app-indexeddb-mirror
id="appindexdb"
key="cats" log
data="{{liveData}}"
persisted-data="{{persistedData}}">
</app-indexeddb-mirror>
But I never set liveData
to a value. It's undefined
. I expect that the app-indexeddb-mirror
element would load persistedData
automatically from the mirrored_data
DB:
Is that not the case?
Because that value is already stored.
from app-storage.
@BorntraegerMarc try to isolate the problem in a pastebin and I'll check it out.
from app-storage.
@abdonrd This issue is one year old and still no solution?
from app-storage.
@hyyan I'm sorry, but I have not tried again about this.
from app-storage.
As far as I know, the Polymer Elements are not going to continue developing. So I close this issue.
from app-storage.
Related Issues (20)
- Polymer 2.0 requires a class instead of Polymer({...})
- Cannot read property 'baseURI' of undefined HOT 3
- app-indexeddb-mirror and already persisted store
- IE/Edge can't sync local-storage data HOT 1
- Firebase Example Doesn't Work HOT 1
- `someUniqueSessionKey` in README/docs, but not in example
- How to use zeroValue function to initialize the default value? HOT 1
- this.set('path',value) doesn't reflect changes in the local storage.
- <app-localstorage-document> always initialize with the default value despite the value has been stored HOT 1
- I want to get data what i added in persisted-data on browser refresh HOT 3
- In setStoredValue: function(path, value) value is not used
- IE11 does not work
- [Feature Request] - App-indexeddb-mirror Load if offline OR data is empty
- how to use app-indexeddb-mirror with firebase. docs issue HOT 1
- Polymer.AppNetworkStatusBehavior name wrong in documentation
- Multiple <app-indexeddb-mirror> not working when offline
- app-indexeddb-mirror not working consistently HOT 16
- exception HOT 1
- app-indexeddb-mirror cause app not responding HOT 2
- app-local-storage-document uses window.top, crashing iframes HOT 2
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 app-storage.