https://www.plasmo.com/ logo
Join Discord
Powered by
# general
  • l

    limited-farmer-52140

    01/09/2023, 7:11 AM
    usePort is to be used in a react component (it's a hook)
  • l

    limited-farmer-52140

    01/09/2023, 7:12 AM
    I suspect you're trying to use the hook in the bgsw which would not work (?). Tho is that the case?
  • l

    limited-farmer-52140

    01/09/2023, 8:54 AM
    @busy-greece-52941 this is one of the ext
  • b

    busy-greece-52941

    01/09/2023, 10:01 AM
    Cool!
  • b

    billions-gpu-47752

    01/09/2023, 5:45 PM
    Oh no, I'm using usePort inside a react component, not inside the BGSW. There I'm using PlasmoMessage.PortHandler instead inside background/ports/getChatGPTAnswer.ts. Sorry I said have made that clearer😅
  • l

    limited-farmer-52140

    01/09/2023, 6:27 PM
    It seems your ts intelisense is not catching the port name. you might need to restart the dev server to get the glu code generated, but if that's the case it shoulda work :d....
  • b

    billions-gpu-47752

    01/09/2023, 7:31 PM
    I'm not sure if it's intellisense though 🤔 because I'm getting the error in my Chrome console
  • l

    limited-farmer-52140

    01/09/2023, 7:41 PM
    oh since you had to use never in that code
  • l

    limited-farmer-52140

    01/09/2023, 7:42 PM
    the chrome console error I think indicates that the port has yet to open
  • w

    wonderful-island-15507

    01/10/2023, 1:02 AM
    I'm using plasmo storage to share data between my tab page and my popup. This works fine on chrome but when I run it in Safari it looks like the tab page and the popup have their own storage. That is, I'm just incrementing a stored number on the tab page, then I go to try increment the popup and it starts again. I suspect this is a Safari quirk not plasmo though. I might just try to send a message from the tab page to the popup for now.
    q
    • 2
    • 3
  • m

    mysterious-oxygen-72594

    01/11/2023, 1:01 AM
    anybody else have trouble accessing the current url with plasmo? mine works inconsistently
  • l

    limited-farmer-52140

    01/11/2023, 1:02 AM
    ref: https://discord.com/channels/946290204443025438/1061520044095447060
  • m

    mysterious-oxygen-72594

    01/11/2023, 1:03 AM
    haha yea thas me
  • s

    stale-tiger-46018

    01/11/2023, 9:32 PM
    Can you customize checkmark with twitter?
  • g

    great-accountant-66077

    01/11/2023, 9:45 PM
    is the stream down just for me?
  • s

    stale-tiger-46018

    01/11/2023, 9:49 PM

    https://www.youtube.com/watch?v=LfiqzPts7cs▾

  • g

    great-accountant-66077

    01/11/2023, 9:50 PM
    ty, stoney
  • s

    stale-tiger-46018

    01/11/2023, 10:06 PM
    Did the live drop?
  • g

    great-accountant-66077

    01/11/2023, 10:07 PM
    i think they ended it
  • s

    stale-tiger-46018

    01/11/2023, 10:07 PM
    Ooof
  • l

    limited-farmer-52140

    01/11/2023, 10:09 PM
    it dropped a tons
  • l

    limited-farmer-52140

    01/11/2023, 10:09 PM
    which sucks xd
  • l

    limited-farmer-52140

    01/11/2023, 10:10 PM
    I need to revamp the streaming infra next week, gonna use that Janus machine
  • l

    limited-farmer-52140

    01/11/2023, 10:10 PM
    we dropped ~20k frames over the duration of the stream rip
  • g

    great-accountant-66077

    01/11/2023, 10:11 PM
    f
  • g

    great-accountant-66077

    01/11/2023, 10:11 PM
    i'm gonna make another example on this weekend
  • g

    great-accountant-66077

    01/11/2023, 10:11 PM
    with mantine.
  • l

    limited-farmer-52140

    01/11/2023, 10:12 PM
    yeet
  • l

    limited-farmer-52140

    01/11/2023, 10:12 PM
    BTW, I made a PR to mantine: https://github.com/mantinedev/mantine/pull/3268
  • l

    limited-farmer-52140

    01/11/2023, 10:12 PM
    But seems like the core author doesn't want it