These are chat archives for ractivejs/ractive

4th
May 2017
Joseph
@fskreuz
May 04 2017 12:11
Random question of the day: If ractive is "mostly synchronous except for animation and transitions", why do methods like set, add etc. return promises?
Joseph
@fskreuz
May 04 2017 12:16
Just wondering, to clarify the docs. The original docs only mention "Returns a Promise" but not say why it's returning it or when it completes.
Martin Kolárik
@MartinKolarik
May 04 2017 12:33
when transitions triggered by the data update complete
Joseph
@fskreuz
May 04 2017 12:34
ahh. :thumbsup:
Juan C. Andreu
@andreujuanc
May 04 2017 12:35
so set returns a promise when the transition that affects that key completes?
Martin Kolárik
@MartinKolarik
May 04 2017 12:36
yes
Juan C. Andreu
@andreujuanc
May 04 2017 12:36
kek! i did know that D:
I suspected it once
Joseph
@fskreuz
May 04 2017 12:37
It's not just set. There's a bunch of methods doing this.
Juan C. Andreu
@andreujuanc
May 04 2017 12:37
ye i got that
is there any other method that returns a promise on a different operation than transaction completion?
Martin Kolárik
@MartinKolarik
May 04 2017 12:38
yep, all methods that modify data should do that
@andreujuanc I can't think of any
Juan C. Andreu
@andreujuanc
May 04 2017 12:39
k!
Bob Schellink
@sabob
May 04 2017 20:00
Regarding the new tutorial layout, I think it is important for the Html and Script panels to be visible at the same time. Those are the main panels to play with and both need to be visible in order to map template to script. Taking the current layout and placing Html and Script next to each other should work better in my mind. If the editor feels cramped, increase it at the cost of the tutorial text.
Chris Reeves
@evs-chris
May 04 2017 20:04
as long as your browser window is >= 1600 or >= 960 and < 1200 you get side by side html and script panes
you can also force it from the settings tab
Bob Schellink
@sabob
May 04 2017 20:08
Ah, fantastic!
Joseph
@fskreuz
May 04 2017 20:14
or... a 4K screen... :D
Bob Schellink
@sabob
May 04 2017 20:14
Only other nitpick is I find the word "Console" next to Output a bit distracting. Emphasized too much? Perhaps Console can be center aligned, and Console become an icon next to max/min? Or smaller text?
Ack, I mean Output center aligned ;-)
Chris Reeves
@evs-chris
May 04 2017 20:19
so switch the console and output tabs?
for context, the playground was designed to be used standalone here: https://ractive.js.org/playground/
and it does its best to be embeddable for the docs
Bob Schellink
@sabob
May 04 2017 20:32
Not swap, no. Looking at playground for the first time, it seems there are 4 panels, Console and Output being two separate panels. Upon closer inspection you realize that Console is a separate tab. Generally I use the browser devtools to look at console output anyway. So my feeling is Console shouldn't get so much UI space. I'm just nitpicking here, so no biggie.
Chris Reeves
@evs-chris
May 04 2017 20:33
I only added a console tab because half the time I'm looking at a bug or something on my phone
no devtools :frowning:
Juan C. Andreu
@andreujuanc
May 04 2017 20:39
+1 to split console and output xP
Bob Schellink
@sabob
May 04 2017 20:48
If Console becomes a "rs-button", that should emphasize the word "Output" more, and still provide a way to view the console.
paulie4
@paulie4
May 04 2017 21:15
I also hate when a website forces you to use a desktop browser, so making it phone-friendly makes me very happy :smile: :+1: