Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Explore using immutable objects for various hooks #138

Open
btford opened this issue Feb 26, 2015 · 1 comment
Open

Explore using immutable objects for various hooks #138

btford opened this issue Feb 26, 2015 · 1 comment

Comments

@btford
Copy link
Contributor

btford commented Feb 26, 2015

One of the problems with middleware is that it makes it hard to reason about where changes to request metadata come from.

This router will have the same problem with its "pipeline," which is effectively middleware.

I'd like to explore having a "dev mode," that enforces immutability with Object.freeze, that could be turned off in production for a perf boost.

@btford btford added this to the post ng-conf milestone Feb 26, 2015
@SanderElias
Copy link

I think this is a good idea. Perhaps even in production, unless the benchmarks show that this is really a big hurdle.
Too bad that es6 proxies have such a limited support, as those would be an ideal fit.

@btford btford modified the milestones: post ng-conf, Backlog Mar 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants