marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
141 stars 40 forks source link

Add a FAQ section to the docs. #30

Open patrick-steele-idem opened 9 years ago

patrick-steele-idem commented 9 years ago

Please provide good candidate questions here!

maberer commented 9 years ago

Starting with this one - please change the questions if necessary...

patrick-steele-idem commented 9 years ago

That's very helpful, @tindli. Thank you! Those are great questions and I'll definitely make sure the new docs address all of those questions. If you come up with any more questions please add them here.

maberer commented 9 years ago
maberer commented 9 years ago
patrick-steele-idem commented 9 years ago

@tindli Can you please clarify the following?

What is a bad example of a component that leaks its state?

Also, I have added a partial FAQ based on some of your questions. Please take a look and provide any feedback: https://github.com/raptorjs/marko-widgets/blob/view-state/docs/faq.md

As soon as I get some more time I will add more of your questions.

Thanks again for providing these questions!

maberer commented 9 years ago

By leaking state I mean, that instead of an exposed function, a direct reference to the widget is used and the setState() call is performed from somewhere outside the widget that does not own the manipulated state...

If this is possible, we should avoid that... (right?)... In my understanding, only the exposed functions should be used to manipulate state (if this is required)...

maberer commented 9 years ago

I am really happy with the FAQ! Great job.

I only have one "concern" so far:

https://github.com/raptorjs/marko-widgets/blob/view-state/docs/faq.md#which-component-functions-are-invoked-at-what-time---whats-the-order-of-invocation

Additionally, I would add the information, which of the functions are invoked on the server too...

Keep up with the great stuff! Many thanks.

maberer commented 9 years ago