Carlos Carneiro
Carlos Carneiro
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
Okay, so I finished. I removed the option to input address for now cuz I couldnt get a nice solution. Hopefully I will improve it with more features.
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
okay
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
working!!!
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
No description
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
i made the bitcoin module on the en folder
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
No description
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
I did that but was unsure. Do I have to make it for every language out there?
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
Is there any code contributor docs?
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
Cant find the where should be stored the translation files
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
I know that. Usually users paste bitcoin addresses but the OnChange doesnt capture pasting
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
No description
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
I have an input field that should make api calls everytime input changes. I was avoiding to use a submit button but I guess I will have to use it
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
Can someone help understand what is wrong with my useEffect
function BitcoinWidgetTile({ widget }: BitcoinWidgetTileProps) {
const [input, setInput] = useState('');
const [latestTransaction, setLatestTransaction] = useState<LatestAddressTransaction | undefined>(undefined);
const { data: initialData, isLoading, isError } = api.bitcoin.getInitialData.useQuery(undefined);
const { t } = useTranslation('modules/bitcoin');
useEffect(() => {
const { data: transaction } = api.bitcoin.getLatestAddressTransaction.useQuery(input);
setLatestTransaction(transaction);
console.log('useEffect');
}, [input]);
.
.
.
}
function BitcoinWidgetTile({ widget }: BitcoinWidgetTileProps) {
const [input, setInput] = useState('');
const [latestTransaction, setLatestTransaction] = useState<LatestAddressTransaction | undefined>(undefined);
const { data: initialData, isLoading, isError } = api.bitcoin.getInitialData.useQuery(undefined);
const { t } = useTranslation('modules/bitcoin');
useEffect(() => {
const { data: transaction } = api.bitcoin.getLatestAddressTransaction.useQuery(input);
setLatestTransaction(transaction);
console.log('useEffect');
}, [input]);
.
.
.
}
I am getting this error I cant seem to see the mistake:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
Yes mempool only supports bitcoin. It is a consensus between the cryptocurrency community that all other coins are called "shitcoins". Anyway, if anyone else would like to jumping on this one with me to add more coins is welcome. I my self only own bitcoins regarding binance is involved in a lot of scandals plus it is a chinese company which makes me frown upon them when it comes to trusting
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
and I just found out that they have their own node package @mempool/mempool.js
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
As far as I know https://mempool.space is among the most used bitcoin plataforms
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
No description
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
About bitcoin selfhosted api, it might be possible to get information from a selfhosted bitcoin node I am not sure though
45 replies
HHomarr
Created by Carlos Carneiro on 4/4/2024 in #💬・get-help
Help finishing my widget
ok I will remove css and make it as simple as possible. Anyone willing to jumping and beautify it with styling is welcome
45 replies