feat: logToConsole
dqn opened this issue · comments
import React from "react";
import { PusherProvider } from "@harelpls/use-pusher";
const config = {
// ...
logToConsole: true,
// ...
};
const App = () => {
<PusherProvider {...config}>
<Example />
</PusherProvider>;
};
I want this to be:
Pusher.logToConsole = true;
Hey @dqn the provider already passes on all arguments to the new Pusher({..., ...props})
:
use-pusher/src/core/types.d.ts
Line 11 in 8622e1d
if it’s something that isn’t an argument, I’d suggest using the usePusher hook:
const { client } = usePusher()
client?.logToConsole = true
Oh, sorry. I didn't check enough. Thanks!
This doesn't seems to work 🤔
Have you been able to test it?