Coder Social home page Coder Social logo

vef2-hop2's People

Contributors

helgigretar avatar hinriksnaer avatar osk avatar rafno avatar

Watchers

 avatar  avatar

vef2-hop2's Issues

viewBook.js kallar á SetState, það má ekki kalla á setstate í Redux.

  async componentDidMount(){
    const str = window.location.pathname;
    const hlutur = str.split('/');
    const url = 'https://verkefni2server.herokuapp.com/'+hlutur[1]+'/'+hlutur[2];
    console.log(url);
    const data = await this.fetchData(url);
    this.setState({ gogn:data, loading: false });
  }

ComponentDidMount kallar á SetState sem sendir á Redux endalaus Action Dispatch, þarf að útfæra eins og í Book.js sem kallar með Try(?) sem gerist aðeins einu sinni.

Notandi getur ekki breytt um nafn

Ef notandi fer í /profile og breytir um nafn þá er ekki sent áfram á gagnagrunn. Name er einnig horfið úr LocalStorage og stendur ekki lengur við hliðina á innskráning (hugmynd, setja username í staðin Name ef Name er undefined || null)

Laga delete

Gagnagrunnur í vef2-hop1 sett vitlaust þar sem bookread_id er ekki serial, heldur aðeins notanda id. Alltaf hið sama

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.