Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 09 2020 06:29
    HellMagic starred donejs/donejs
  • Oct 25 2020 23:31
    milkshakegum starred donejs/donejs
  • Aug 15 2020 19:53
    amin-pi starred donejs/donejs
  • Aug 08 2020 00:18
    akadak starred donejs/donejs
  • Aug 02 2020 04:20
    jasonbellis starred donejs/donejs
  • Jul 24 2020 03:36
    kanna99o starred donejs/donejs
  • Jul 07 2020 00:15
    justinbmeyer commented #1201
  • Jul 06 2020 20:39
    santo74 commented #1201
  • Jul 06 2020 15:08
    matthewp commented #1201
  • Jul 03 2020 08:21
    santo74 opened #1201
  • Jul 02 2020 23:56
    krnd-dq starred donejs/donejs
  • Jun 30 2020 10:42
    spabbathi starred donejs/donejs
  • Jun 23 2020 00:03
    BigAB unassigned #665
  • Jun 22 2020 00:58
    jkin8010 starred donejs/donejs
  • Jun 17 2020 01:23
    h503031807 starred donejs/donejs
  • May 29 2020 18:41
    sibiar600 starred donejs/donejs
  • May 29 2020 08:45
    aikeProject starred donejs/donejs
  • May 28 2020 21:52
    ManojNallusamy starred donejs/donejs
  • May 27 2020 12:46
    irungentootoo starred donejs/donejs
  • May 25 2020 15:37
    greenkeeper[bot] commented #1197
Chasen Le Hara
@chasenlehara
Hey everyone, we’re hosting our first online meetup on February 14th at 9 am Pacific Time! We’ll have a handful of short talks on a variety of interesting topics, plus time afterwards to chat and put the meet in meetup.
Also, we’re now on Slack too! I posted about it on our forums: https://forums.donejs.com/t/you-re-invited-to-bitovi-s-community-slack/1018
You can join the Slack here: https://tinyurl.com/BitoviCommunitySlack
Sam
@CrusaderJellyfish
Does anyone know if there is an example anywhere of integrating a donejs application with firebase authentication?
Chasen Le Hara
@chasenlehara
@CrusaderJellyfish I don’t think I’ve seen anything with Firebase auth, just the CDN https://donejs.com/Guide.html#set-up-firebase
Chasen Le Hara
@chasenlehara
Today’s the last day to vote in our latest community survey! 🗳 https://www.surveymonkey.com/r/bitovi-feb-2019
Chasen Le Hara
@chasenlehara

Join our first online meetup now! 🎉 We have a great lineup of speakers on topics including Chrome extensions, Velocirender, DevOps, and recursive React components.

Register here: https://zoom.us/meeting/register/0f9a68cba6f5846e66858a512be5123a

Join here: https://zoom.us/j/351415253

Sam
@CrusaderJellyfish
How should one handle a clicking OFF an element
like closing a dropdown menu when someone clicks off of it?
Kevin Phillips
@phillipskevin
@CrusaderJellyfish normally I would handle this by setting up a click handler on the window
that would close the dropdown
Sam
@CrusaderJellyfish
Yeah, I would too. Is that really the component driven can way?
Kevin Phillips
@phillipskevin
yeah, I think so
just do it in the connectedCallback of the component
Sam
@CrusaderJellyfish
Ah perfect example. Thank you.
Kevin Phillips
@phillipskevin
there's actually a better example here: https://canjs.com/doc/guides/testing.html#DOMEvents
you can put the window listener in the property itself
that's the way to go @CrusaderJellyfish
Sam
@CrusaderJellyfish
Excellent. I will definitely give this a try. Thanks for the prompt response. :-D
Kevin Phillips
@phillipskevin
:thumbsup: hope it works out
Chasen Le Hara
@chasenlehara
Our next online meetup is going to be on Thursday, March 21st! Register here and check out the videos from our last meetup: https://www.bitovi.com/blog/save-the-date-march-21st-for-our-next-online-meetup-and-videos-from-februarys-meetup
Sam
@CrusaderJellyfish
I'm having a problem with DoneJS aggressively caching everything ... including the resolved state of application initialization promises ...
is there a way to turn off caching?
even if its just at the level of specific attributes?
Chasen Le Hara
@chasenlehara
Is the problematic caching in SSR or on the client side?
What’s an example of the app init promises… fetching configuration or something like that?
BTW almost everyone’s moved to our Slack: https://www.bitovi.com/community/slack
You’ll get a response from more people there :D
Sam
@CrusaderJellyfish
I think its on the client side, but I'm not certain. I'm running JavaScript/Client Side authentication with using the Google Firebase Auth
I wrap a promise around the call that checks if the session is still active
and without fail, the promise, initially loads as resolved so matter what I try, since that was its last state before reload, and when it kicks off again, it triggers the update
Chasen Le Hara
@chasenlehara
since that was its last state before reload, and when it kicks off again, it triggers the update
Sam
@CrusaderJellyfish
I'll have to look into slack then :-D
Chasen Le Hara
@chasenlehara
Would you mind explaining “when it kicks off again, it triggers the update” more?
Sam
@CrusaderJellyfish
It takes Firebase a number of seconds to respond
So, {{ fb_promise.isResolved }} is always true no matter what I do unless I add it as a new attribute (or change its name), and then the very first time it loads, it 'isPending' once. When the promise resolves each subsequent time again (the .then is triggered), it hits the code as it should.
Since I can toggle the name of the attribute and it isn't hitting the problem, I'm leaning towards it being a caching issue
I found an example in the recipes of using Google Youtube auth a similar way. I'll have to compare how I'm doing it with Firebase with how its written for that, but in the mean time ... is there no way to turn off client side caching?
Chasen Le Hara
@chasenlehara
There’s not a switch for caching like that. If the request was being made with something like can-connect’s super-map, I’d say to switch to base-map, but it doesn’t sound like the request is through can-connect (is it?)
Sam
@CrusaderJellyfish
Nope
its just a wrapper around Firebase's API code itself
Chasen Le Hara
@chasenlehara
I have to drop offline for a bit, but I’ll be back later. Someone would probably respond more quickly in Slack.
Sam
@CrusaderJellyfish
I'll poke around a bit more. I must be missing something basic
Thanks!
Chasen Le Hara
@chasenlehara
The next thing I’d want to see is some of the promise code… I don’t think I fully understand how the promise starts off as resolved.
…and yup, happy to help!
ashimbose2009
@ashimbose2009
Hi DoneJs with cordova is not opening my external service api in android emulator. But its works perfectly fine with web browser. am i doing anything wrong? any extra setup required for donejs build cordova