Comments (3)
This trick may fix that.
export function init(context) {
context.rcp.preInit('rcp-fe-common-libs', async (provider) => {
window.provider = provider
})
setTimeout(async () => {
const api = await window.provider.getOptional("rcp-fe-lol-social")
console.log(api)
// fix me
}, 10000)
}
from penguloader.
It should be noted that getOptional
will actually load plugin if its not loaded yet, which might not be ideal. I think to clear up any confusion there should be separate APIs to wait for a plugin (which will of course also instantly fire a callback if its already loaded when its called) and separate API to load them like load
/getOrLoad
.
from penguloader.
This issue just marks a note for next update.
The current whenReady
impl wraps the callback inside Promise
, no checks for even loaded plugins.
Never saw getOptional
before, and it could be changed in the future.
from penguloader.
Related Issues (20)
- Grouping plugins by author HOT 1
- Shared TS types & enhancement HOT 1
- Experiment: TypeScript and JSX Support 🗿
- Plugin Browser HOT 3
- erro microsoft HOT 2
- Stream Bugged HOT 1
- How will the new League of Legends anti cheat Vanguard react to Pengu's injection into the LCU? HOT 5
- Discord Invites HOT 1
- Discord Invites are closed HOT 1
- 能否增加一个拦截直播弹窗? HOT 1
- Options to disable Pengu Loader loading screen and toast message HOT 5
- custom scheme HOT 8
- Cannot click active status on HOT 1
- Feature: a fallback injection method using symlink HOT 1
- Mutliple LeagueClient support
- Bug: Application Error in rundll32.exe
- Simple Optimization HOT 3
- Bootstrapper failed with error 0x5
- DevTools display on 2k screen HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penguloader.