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

how to use templates with immutable.js ??? #194

Open
linushp opened this issue Sep 21, 2016 · 3 comments
Open

how to use templates with immutable.js ??? #194

linushp opened this issue Sep 21, 2016 · 3 comments

Comments

@linushp
Copy link

linushp commented Sep 21, 2016

No description provided.

@linushp
Copy link
Author

linushp commented Sep 21, 2016

I know , I just need to rewrite the lodash map function .like this 👍

_.map = function(m,i){
if(isImmutable){
.....
}
}

@nippur72
Copy link
Contributor

I was just writing it :) ... also there is a PR in queue for having custom helpers (_.map)...

@nippur72
Copy link
Contributor

to clarify: the PR is #176 and the feature is discussed in #184. It allows to replace the default map function used by react-templates with a custom one. (So for example in your case you don't have to hack _.map() in lodash).

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