Git Product home page Git Product logo

Comments (13)

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024 1

I think the problem arises if you build the project with polymer build

from app-storage.

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024

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.

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024

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.

abdonrd avatar abdonrd commented on June 22, 2024

I think is the same issue: https://github.com/Polymer/polymer-build/issues/22

from app-storage.

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024

@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.

abdonrd avatar abdonrd commented on June 22, 2024

When I tried this, didn't work: https://github.com/Polymer/polymer-build/issues/22#issuecomment-248537950

from app-storage.

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024

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.

abdonrd avatar abdonrd commented on June 22, 2024

Yes, with polymer serve it works for me:

screen shot 2017-04-04 at 12 36 14 pm

from app-storage.

BorntraegerMarc avatar BorntraegerMarc commented on June 22, 2024

@abdonrd Could you help me out real quick? I only get the persistedData if the normal data (or liveData) has been set/updated:
image

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:
image

Is that not the case?
Because that value is already stored.

from app-storage.

abdonrd avatar abdonrd commented on June 22, 2024

@BorntraegerMarc try to isolate the problem in a pastebin and I'll check it out.

from app-storage.

hyyan avatar hyyan commented on June 22, 2024

@abdonrd This issue is one year old and still no solution?

from app-storage.

abdonrd avatar abdonrd commented on June 22, 2024

@hyyan I'm sorry, but I have not tried again about this.

from app-storage.

abdonrd avatar abdonrd commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.