Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the argument 'options' gone ? #44

Closed
Mantak opened this issue Aug 12, 2017 · 2 comments
Closed

where is the argument 'options' gone ? #44

Mantak opened this issue Aug 12, 2017 · 2 comments

Comments

@Mantak
Copy link

Mantak commented Aug 12, 2017

thank you for your amazing work, and i'm puzzled with the argument 'options', how can i use it in the 'makeStore' function.

/**

  • @param {object} initialState
  • @param {boolean} options.isServer indicates whether it is a server side or client side
  • @param {Request} options.req NodeJS Request object (if any)
  • @param {boolean} options.debug User-defined debug mode param
  • @param {string} options.storeKey This key will be used to preserve store in global namespace for safe HMR
    */
    const makeStore = (initialState, options) => {
    return createStore(reducer, initialState);
    };
@kirill-konshin
Copy link
Owner

So what about options? You may use them freely in any way your app needs.

@kirill-konshin
Copy link
Owner

Closing this issue because of no activity. Feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants