-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Using Kysely plugins doesn't seem to be properly supported by the react package. I am using the ParseJSONResultsPlugin
, and it works when I call execute
on the query, but not when I pass the query to the useQuery hook.
I guess this is a bug rather than a feature request, because:
- The types of
wrapPowerSyncWithKysely
suggest kysely can be configured as usual using the second config parameter. (On another note: I think the config parameter should be changed toOmit<KyselyConfig, 'dialect'>
, sincedialect
is set bywrapPowerSyncWithKysely
and I'm not sure it ever makes sense to override it. At least it should be optional) - Kysely seems to assume specific plugins to be used. For example
jsonArrayFrom
andjsonObjectFrom
assume to be used withParseJSONResultsPlugin
, so the types will be wrong if the plugin doesn't work.
guillempuche and fooware
Metadata
Metadata
Assignees
Labels
No labels