question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Force model to be object and always be immutable?

See original GitHub issue

@jbucaran what you think about the model to be object and freeze it, using Object.freeze or deep-freeze?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
okwolfcommented, Aug 28, 2017

@charlike yes @jbucaran is correct, hyperapp-freeze will get cleaned up after the hyperapp-logger refactor is complete.

1reaction
okwolfcommented, Aug 28, 2017

There’s a mixin solution for this: https://github.com/okwolf/hyperapp-freeze

Read more comments on GitHub >

github_iconTop Results From Across the Web

If immutable objects are good, why do people keep creating ...
Both mutable and immutable objects have their own uses, pros and cons. Immutable objects do indeed make life simpler in many cases.
Read more >
Reading 9: Mutability & Immutability - MIT
Recall from Basic Java when we discussed snapshot diagrams that some objects are immutable: once created, they always represent the same value.
Read more >
Immutable Objects Are Worth the Effort | by Dan Goslen
First, An Embarrassing Story · Immutability Has Stronger State Guarantees · Immutable Objects Are Easier To Understand · Immutable Objects Force ...
Read more >
Four Ways to Immutability in JavaScript - DEV Community ‍ ‍
Abstract. This article presents four different techniques to immutably update data structures in JavaScript:.
Read more >
Make immutable Java object - Stack Overflow
Why do we create immutable objects? Immutable objects are simply objects whose state (the object's data) cannot change after construction.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found