« first day (3522 days earlier)      last day (1409 days later) » 

12:04 AM
so my question is not important?
i value your advice always
what is your guys recommended way to store an api authorization token? Is cookie/local storage recommended or just a value perhaps stored in state?
like ngrx
also, I create a refresh token and I keep the call alive to proceed if the user is logged in. However, I don't really know how to pass that new token back to the front-end such that the client can now use the new refreshed token. kind of stuck there
 
 
2 hours later…
1:45 AM
Hello guys!
Anyone here knows about mongodb ?
How would you take out all the data except one set of data from a collection?
 
 
3 hours later…
4:29 AM
Hey, guys, package installation in npm was damn slow in my win 10 using the cmd,
But VS Code using the same cmd is a lot faster (i double checked), here,
benchmark of `jshint`,
in cmd, install took 96.142s and uninstall took .85s
same cmd in vs code, install took 1.828s and uninstall took 1.548s
.
anyone knows, why some much diff in default cmd of win 10??
questions out there didn't seemed to help me on it
 
5:01 AM
That's how Bill made it!
 
 
1 hour later…
6:02 AM
Hello Mr@Unbreachable
 
6:13 AM
So its problem with win..
 
should be!
Do you know anything about mongodb?
@aXuser264
?
 
 
2 hours later…
8:16 AM
@Onthewaytosuccess nope
 
8:42 AM
hi, I am trying to make discord bot. how do I get 2 bots online at same time with js ?
 
@OwaisQureshi Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@OwaisQureshi Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
Hello @Supercool,

Do you know anything about mongodb?
 
9:09 AM
Its a No SQL database
 
@Supercool. Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
thats what i know
i installed the engine in my pc to practive
practice*
but was not able to do it
 
Have you worked with it before?
If you are, can you tell me how would you get details of all the users except the logged in user @Supercool.
?
 
9:31 AM
No idea
 
 
3 hours later…
Sam
12:09 PM
export const getUserRecord = async uid => {
  await firestore()
  .doc('users/'+uid)
  .get()
  .then(documentSnapshot => {
    return documentSnapshot.data()
  })
};
Is this the right way to wait for promises to resolve and return data from an async function?..
 
 
1 hour later…
1:12 PM
@Sam usually, you shouldn't be mixing await and .then(). Both of them do the same thing, so it's better to keep to one or the other. Also, you're not returning anything from your function.
 
Sam
@VLAZ Thanks. I did a bit of reading into it and determined it didnt really make sense
 
export const getUserRecord = async uid => firestore()
  .doc('users/'+uid)
  .get()
  .then(documentSnapshot => {
    return documentSnapshot.data()
  });
 
Sam
Are you familiar with react native? I have a follow up question regarding context APIs and react navigation
const MainNavigator = createStackNavigator(
  {
    ProfileDetailsScreen: {
      navigationOptions: {
        ...sheetPreset,
      },
      screen: ProfileDetailsScreen,
    },
    SettingsModal: {
      navigationOptions: {
        ...expandedPreset,
        gesturesEnabled: false,
      },
      screen: SettingsModal,
    },
  },
  {
    defaultNavigationOptions: {
    },
    headerMode: 'none',
    initialRouteName: 'SwipeLayout',
    mode: 'modal'
  }
);
 
You probably want the above. As for React native - sorry, I'm not familiar.
 
Hi
 
1:14 PM
@Gianmarco Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Sam
Is it possible to wrap a context API around a specific view rather than having something globally
@VLAZ Thanks dude. and np
 
 
2 hours later…
3:06 PM
Hi if somebody has a solution for this please share stackoverflow.com/questions/62246988/…, I am able to send the post/get requests but I am not getting how to return the value to the page since the submit is based on <select class="custom-select" id="stores" name='myfield' onchange='this.form.submit()'> , how to return the page response?
 
 
1 hour later…
4:29 PM
I have some stupid problem with a scroll list in js, I have a virtualized list in vanilla javascript with dynamic content (new elements are added dynamically) I'm trying to check if you have scrolled down but for some reason it doesn't work:
 
 
4 hours later…
8:29 PM
Im trying to get a check box in adobe to (When checked) to subtract "TTLCalculated" And use that value in the next part of my code, wanted to know if what im doing wrong, im a newbie to javascript, would really appreciate the help!

var DA = Number(this.getField("Downpayment*").valueAsString);
var DA2 = Number(this.getField("TTLCalculated").valueAsString);
var DA3 = Number(this.getField("TaxTagsIncluded").valueAsString);
If “TaxTagsIncluded” = True
event.value = (DA-DA2);
else;
Return;
 
 
3 hours later…
11:33 PM
anyone here with glob patterns
"assets": [
              "src/favicon.ico",
              "src/assets",
              {
                "glob": "*.*",
                "input": "./swagger/",
                "output": "./swagger"
              },
              {
                "glob": "*.*",
                "input": "./swagger/api-definitions/",
                "output": "./swagger/api-definitions"
              }
            ],
is there anyway to consolidate that. I am horrible when it comes to glob patterns
 

« first day (3522 days earlier)      last day (1409 days later) »