Closed alexandru-filimon closed 3 years ago
Convention for naming variables:
observe
: the final name in the path or an interpretation of that value:
bam = observe.something.bam
title = observe.article.title
isFinished = observe.article.finishedWritingInArticle
update
: the prefix update
+ the final name in the path or an interpretation of that value:
updateBam = update.something.bam
updateTitle = update.article.title
updateIsFinished = update.article.finishedWritingInArticle
get
: the prefix get
+ the final name in the path or an interpretation of that value:
getBam = get.something.bam
getTitle = get.article.title
getIsFinished = get.article.finishedWritingInArticle
_
for pseudo-private props:
_viewId
_producerId
_now
Example:
const A: producer = ({
foo = observe.foo,
updateFoo = update.foo,
getFoo = get.foo
}) => {
...
}
These rules are up for debate
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Other information: