in createresource what is the best approach to handle the initial state - SolidJS