Code Monkey home page Code Monkey logo

ds-frontend's People

Contributors

alexgul4enko avatar dependabot[bot] avatar legendar avatar mrrinsvind avatar nikitamazur avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ds-frontend's Issues

navigationToProps review

handle router props requires a lot of additional code. we need to review this. as an idea - add some adapters to resource to expand resource functionality

auto-refresh list/item after update

the original resource library (1.x version) has functionality to auto-update store after save/update requests.

we need to re-implement it in 2.0 version.

can't use props inside endpoint

  endpoint: 'content/posts/:postId/tip',

this will not work.

endpoint should be based on props.

UPD: this is works as expected in infinity-list and prefetch resources but is reprodusable in final forms

workaround:

export default withFinalForm(
  {
    validate,
    valuesInterceptor: (values, props) => ({ ...values, postId: props.postId })
  },
  {
    namespace: 'session',
    endpoint: 'content/posts/:postId/tip',
  },
)

Pass component props to all resource methods

Fo example there is some resource which endpoint depends on passed prop id:

endpoint: 'some/endpoint/:id/path'

This endpoint will work only once (when using prefetchResources for example), so that prop id will be passed to endpoint, but calling resource.fetch() will cause error, because id will be undefined.

Fix the logic of building endpoints so that component props will always be passed to it.

want to control request method

I need to make a POST instead of PATCH in the following configuration (in case when props.id is defined)

endpoint: `/posts/:id/like`

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.