Git Product home page Git Product logo

Comments (7)

watermelon-brother avatar watermelon-brother commented on May 24, 2024 1

you can use like this
this.cache.loadFromObservable(cacheKey, request).subscribe(); @Alberick0

from ionic-cache.

D4rkMindz avatar D4rkMindz commented on May 24, 2024 1

try to replace subscript with subscribe

from ionic-cache.

Nodonisko avatar Nodonisko commented on May 24, 2024

It's definitely bug, can you provide information about browser you use, device etc.?

from ionic-cache.

watermelon-brother avatar watermelon-brother commented on May 24, 2024

now!everything is ok!
the tools is very good!think you! hope you can keep update with the ionic !@Nodonisko

from ionic-cache.

Alberick avatar Alberick commented on May 24, 2024

I get this when there's nothing on the cache, I have a calendar page and when I load it, inside my ionViewDidLoad I call my api service which retrieves all the events that's when I get the 'no such key'

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.8
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.1.2
Ionic Framework                 : ionic-angular 3.4.2

System:

Node       : v6.10.3
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.10

from ionic-cache.

D4rkMindz avatar D4rkMindz commented on May 24, 2024

Same problem here. If the cache-item is empty, there is the message, that there is no key.

from ionic-cache.

harsandevhunt avatar harsandevhunt commented on May 24, 2024

Have to use like this below to overcome this issue,

loadList() {
let url = "http://ip.jsontest.com";
let request = this.http.get(url);

return this.cache.loadFromObservable(url, request).subscribe((res:Response) => {res.json()});

from ionic-cache.

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.