You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The inferred type of 'sampleReatomResource' cannot be named without a reference to '.pnpm/@reatom+async@3.16.2/node_modules/@reatom/async/build/withCache'. This is likely not portable. A type annotation is necessary.ts(2742)
code:
export const sampleReatomResource = reatomResource(async (ctx) => {
return await ctx.schedule(() => {
const number = 10;
return Promise.resolve(number);
});
}, 'sampleReatomResource ').pipe(
withDataAtom(null),
withErrorAtom(),
withCache({ withPersist: withLocalStorage }), // <========== If we comment this line the error goes away
withConcurrency('first-in-win'),
withStatusesAtom(),
);
Part
Package @reatom/framework
Version
3.4.52
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
What happened?
withCache is causing Lint Type error when used.
Lint Error:
code:
Part
Package @reatom/framework
Version
3.4.52
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
The text was updated successfully, but these errors were encountered: