fix(frontend): adapt apps to sails-js and react-hooks update#665
fix(frontend): adapt apps to sails-js and react-hooks update#665LouiseMedova merged 7 commits intomasterfrom
Conversation
|
I think we should also add the IDL source files like we did in ZK Poker (frontend\apps\zk-poker\src\app\utils\sails) and keep them next to the files generated from them. This way, if the sails library version change, we can easily regenerate the lib code. |
| const pokerFactoryProgram = usePokerFactoryProgram(); | ||
|
|
||
| const { data: ptsProgramId } = useProgramQuery({ | ||
| const { data: ptsProgramId } = useTypedProgramQuery({ |
There was a problem hiding this comment.
I don't thik that we need useTypedProgramQuery at all
I just change this line back to useProgramQuery and get this:
ptsProgramId: `0x${string}` | undefined
So useProgramQuery allready infer the types
| const program = usePokerProgram(); | ||
|
|
||
| const { data, refetch, isFetching, error } = useProgramQuery({ | ||
| const { data, refetch, isFetching, error } = useTypedProgramQuery({ |
There was a problem hiding this comment.
The same about other using of useTypedProgramQuery
| @@ -0,0 +1,26 @@ | |||
| import { resolve } from 'path'; | |||
There was a problem hiding this comment.
Why do we need this config?
We don't need to build this package for using it in dapps.
|
Migrated |
No description provided.