project-error / pefcl

pefcl (PE-Financial) is a financial banking resource for FiveM written in TypeScript and React.
Other
65 stars 67 forks source link

[Major bug]: Incorrect load/unload handling #154

Open mikigoalie opened 9 months ago

mikigoalie commented 9 months ago

Issue I unfortunately have bare knowledge of React and especially TS, so I could not debug it myself yet, however, it seems PEFCL has incorrect handling of loading / unloading players. Once loaded, the next unload/load cycle will always keep old (initial) data displayed.

Expected behavior Unload player A, load player B and see player B current values (money, transactions etc..)

To Reproduce Self exxplainatory.. Load idA, unload idA, load idB and open bank as idB. You'll see idA data

Additional context I know you are working on npwd compat, however, fixing this would be incredible boost for the resource atm.

mikigoalie commented 9 months ago

Fixed in #160