bret_pat
bret_pat
Explore posts from servers
PD🧩 Plasmo Developers
Created by davidgonmar on 7/20/2023 in #👟framework
Cannot import package that exposes .mjs files instead of .js files
Brilliant. Thanks so much for this since it’ll solve a lot of my problems in the future
18 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/6/2023 in #👟framework
How to use Plasmo's globalProvider?
This makes it only a single TRPC call is made for all the mounted components instead of for each
7 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/6/2023 in #👟framework
How to use Plasmo's globalProvider?
MY use case was for React query and there is a work-around for this. Since QueryClient is just a generic javascript object, you can create that object once globally and then just pass that in as a prop.
7 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/6/2023 in #👟framework
How to use Plasmo's globalProvider?
No description
7 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/6/2023 in #👟framework
How to use Plasmo's globalProvider?
Er, so I'm using
export const Layout = ({ children }) => {
return <GlobalProvider>{children}</GlobalProvider>
}
export const Layout = ({ children }) => {
return <GlobalProvider>{children}</GlobalProvider>
}
But what ends up happening for getInlineAnchorList(...), is that a new Layout is created for each one rather than just sharing between all of them
7 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/6/2023 in #👟framework
How to use Plasmo's globalProvider?
So it seems like _app.tsx might not have been implemented?
7 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/4/2023 in #👟framework
Putting Key in manifest causes ``Uncaught Error: Extension context invalidated.
The page still refreshes, and the extension was updated.
9 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/4/2023 in #👟framework
Putting Key in manifest causes ``Uncaught Error: Extension context invalidated.
So everytime the project get's rebuilt, I will get either the uncaught error:extension context invaldiated or `Uncaight(in promise) errpr: extension context invalidated
9 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/4/2023 in #👟framework
Putting Key in manifest causes ``Uncaught Error: Extension context invalidated.
I removed the key for now, since i'm just trying to isolate this problem.
9 replies
PD🧩 Plasmo Developers
Created by bret_pat on 8/4/2023 in #👟framework
Putting Key in manifest causes ``Uncaught Error: Extension context invalidated.
Every few seconds. I"m trying to fix my workflow since something is very wrong with rebuilding my extension.
9 replies
PD🧩 Plasmo Developers
Created by davidgonmar on 7/20/2023 in #👟framework
Cannot import package that exposes .mjs files instead of .js files
Gave it a go for a while but didn't work out. THanks for the help @louisgv !
18 replies
PD🧩 Plasmo Developers
Created by davidgonmar on 7/20/2023 in #👟framework
Cannot import package that exposes .mjs files instead of .js files
Do you know what version of Plasmo supported the older resolver?
18 replies
PD🧩 Plasmo Developers
Created by davidgonmar on 7/20/2023 in #👟framework
Cannot import package that exposes .mjs files instead of .js files
@louisgv Well, is there a way to make it work with Plasmo without the library needing to change?
18 replies
PD🧩 Plasmo Developers
Created by bret_pat on 7/25/2023 in #👟framework
PlasmoGetInlineAnchorList doesn't shift host layout
I think this might have to do with using shadowdom
3 replies
PD🧩 Plasmo Developers
Created by davidgonmar on 7/20/2023 in #👟framework
Cannot import package that exposes .mjs files instead of .js files
Ended up using a different package and it's effectively the same
18 replies