Commit 7ea3acd8 authored by Wolfram Kriesing's avatar Wolfram Kriesing

The initial code.

parent a6246cdd
export const fetch = () => '';
\ No newline at end of file
import { fetch } from './backend';
const cache = {};
export const loadStudent = ({ studentId }) => {
if (!cache[studentId]) {
cache[studentId] = fetch({ studentId });
}
return cache[studentId];
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment