Allow plugins to be customizable #3275
timkley
started this conversation in
3. Feature Ideas
Replies: 1 comment 4 replies
-
Probably smart. The more appropriate implementation would be |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community and @calebporzio 👋🏻
today I've noticed that it currently seems to be impossible to configure plugins in user land.
What about accepting a second parameter when registering a plugin, like this:
Edit: As @ekwoka pointed out, the following syntax is probably the better one, as it allows plugin developers to provide better context for type safety and would also make the impact smaller, as only plugins that need configuration need to be changed:
This also outlines my use case I tried solving today: we use the
persist
plugin mainly to persist data which is bound to your user, not necessarily to the browser session. The user has it's own TTL which is provided by the server.So, instead of updating every reference to
$persist
I'd like to overwrite default session storage.If this is something that's likely to be accepted I'd invest time into a PR :)
Beta Was this translation helpful? Give feedback.
All reactions