GithubHelp home page GithubHelp logo

Comments (8)

NetanelBasal avatar NetanelBasal commented on May 22, 2024

Fixed, thanks. Keep up the excellent work.

from akita.

stherrienaspnet avatar stherrienaspnet commented on May 22, 2024

I wandering if there is a disavantage of using this way? NOT using
export function createSession() {
return {
id:null,
firstName:'',
lastName:'',
token:''
} as Session;
}

from akita.

NetanelBasal avatar NetanelBasal commented on May 22, 2024

What do u mean "this way"? You are not initializing the params.

from akita.

stherrienaspnet avatar stherrienaspnet commented on May 22, 2024

Sorry my lack of clarity, into the playground code I Saw different pattern for the creation as follow:
I wonder witch one should I pickup

export function createSession({
id = null, firstName = '', lastName = '', token = ''
}: Partial) {
return {
id,
firstName,
lastName,
token
};
}

export function createGenre(params: Partial) {
return {
...params
} as Genre;
}

export function createStory() {
return {
title: '',
story: '',
draft: false,
category: 'js'
} as Story;
}

from akita.

NetanelBasal avatar NetanelBasal commented on May 22, 2024

What works best for you 😀. Usually, it will be the createGenere pattern.

from akita.

stherrienaspnet avatar stherrienaspnet commented on May 22, 2024

Thanks :)

from akita.

stherrienaspnet avatar stherrienaspnet commented on May 22, 2024

One last question for today as I'm starting to use you nice akita cli tool. I wandering when you created session store for production application, did you answer YES to the question: Is it UIStore? "I not sure if this is usefull for session or not base on your experience.

from akita.

NetanelBasal avatar NetanelBasal commented on May 22, 2024

Not, it's not. If you have any further question feel free to send me a private email, so we won't bother the rest. Thanks.

from akita.

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.