Closed MichalW closed 10 years ago
Thanks for really jumping the gun on this PR, I guess :)
Blaze isn't totally working yet and so I haven't modified the README. I'll merge your changes in with additional edits when I'm ready.
I working with sharejs in blaze, maybe I will send you other pull requests :)
Best regards Michał Wanat
2014-04-02 14:53 GMT+02:00 Andrew Mao notifications@github.com:
Thanks for really jumping the gun on this PR, I guess :)
Blaze isn't totally working yet and so I haven't modified the README. I'll merge your changes in with additional edits when I'm ready.
— Reply to this email directly or view it on GitHubhttps://github.com/mizzao/meteor-sharejs/pull/10#issuecomment-39325997 .
It looks like we will need to write a custom UI.Component
to make this work, because Blaze won't actually re-render the template as before and we need to update the contents ourselves and make sure that ShareJS actually disconnects and connects to a new document. I am trying to understand the component API.
How are you approaching this right now?
Yea, meteor don't re-render this if I have more than one pages with sharejs. I not yet solved this problem
2014-04-02 15:13 GMT+02:00 Andrew Mao notifications@github.com:
It looks like we will need to write a custom UI.Component to make this work, because Blaze won't actually re-render the template as before and we need to update the contents ourselves and make sure that ShareJS actually disconnects and connects to a new document. I am trying to understand the component API.
How are you approaching this right now?
— Reply to this email directly or view it on GitHubhttps://github.com/mizzao/meteor-sharejs/pull/10#issuecomment-39327966 .
I am working on that right now by writing a custom UI.Component
. I couldn't see any other way to do it.
Now that the rendered() event is only fired one time, there are 2 methods people are suggesting on the forums:
Both of these solutions are hacks and neither are a good solution. Hopefully we will get a new methodadded to replace the lost rendered() method.
@swese44 Those two approaches both have problems.
Deps.autorun
approach you need to have access to whatever reactive variable generates the change that you want to do some operation on. That is all fine and dandy when you are writing the app with your own Session
variables, but does not work when you are writing a package.I see you're already digging into this :) https://github.com/meteor/meteor/issues/2001
I've got my entire set of shovels out, a few power excavators, plus a couple of TBMs.
This is fixed now in a7dd4e98f031fb6671d4b22ac1b3940b4122300c and README is updated.
Small fixes in readme